pub enum PackMode {
Transfer,
Snapshot,
}Expand description
How a socket is treated when its containing value is packed.
Variants§
Transfer
An explicitly sent position (a zoom argument, a drop payload): a socket
moves — the original handle is replaced with a closed one.
Snapshot
An ambient position (the globals snapshot, a closure’s captures): a socket is not taken from the sender; the pup receives a closed copy instead.
Trait Implementations§
impl Copy for PackMode
impl Eq for PackMode
impl StructuralPartialEq for PackMode
Auto Trait Implementations§
impl Freeze for PackMode
impl RefUnwindSafe for PackMode
impl Send for PackMode
impl Sync for PackMode
impl Unpin for PackMode
impl UnsafeUnpin for PackMode
impl UnwindSafe for PackMode
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