pub struct PacketSize(/* private fields */);
Expand description
Namespace type with methods to compute packet sizes, for use with
set_pending_send_size
.
Implementations§
Source§impl PacketSize
impl PacketSize
Sourcepub const fn completion(payload_len: usize) -> usize
pub const fn completion(payload_len: usize) -> usize
Computes the size of a completion packet.
Sourcepub const fn transfer_pages(count: usize, payload_len: usize) -> usize
pub const fn transfer_pages(count: usize, payload_len: usize) -> usize
Computes the size of a transfer page packet.
Auto Trait Implementations§
impl Freeze for PacketSize
impl RefUnwindSafe for PacketSize
impl Send for PacketSize
impl Sync for PacketSize
impl Unpin for PacketSize
impl UnwindSafe for PacketSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more