pub struct TransferredPacket<T: PacketPerms>(/* private fields */);Expand description
Represents the state of the packet that has already had data transferred to.
This struct is marked as must_use, because the intention is for the backend to be explicit
about when the packet is dropped and released to the user. Since bound packets may call a
function that generates more I/O requests, it is important to drop the packet outside critical
sections.
Trait Implementations§
Source§impl<T: PacketPerms> Errorable for TransferredPacket<T>
impl<T: PacketPerms> Errorable for TransferredPacket<T>
Source§impl<Perms: PacketPerms> From<TransferredPacket<Perms>> for StandardPktVariations<Perms>
impl<Perms: PacketPerms> From<TransferredPacket<Perms>> for StandardPktVariations<Perms>
Source§fn from(p: TransferredPacket<Perms>) -> Self
fn from(p: TransferredPacket<Perms>) -> Self
Converts to this type from the input type.
Source§impl From<TransferredPacket<Read>> for AnyPacket
impl From<TransferredPacket<Read>> for AnyPacket
Source§fn from(p: TransferredPacket<Read>) -> Self
fn from(p: TransferredPacket<Read>) -> Self
Converts to this type from the input type.
Source§impl From<TransferredPacket<ReadWrite>> for AnyPacket
impl From<TransferredPacket<ReadWrite>> for AnyPacket
Source§fn from(p: TransferredPacket<ReadWrite>) -> Self
fn from(p: TransferredPacket<ReadWrite>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TransferredPacket<T>
impl<T> !UnwindSafe for TransferredPacket<T>
impl<T> Freeze for TransferredPacket<T>
impl<T> Send for TransferredPacket<T>
impl<T> Sync for TransferredPacket<T>
impl<T> Unpin for TransferredPacket<T>
impl<T> UnsafeUnpin for TransferredPacket<T>
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