pub enum TransferKind {
ExplicitCopy,
ZeroCopyHandoff,
}Expand description
Kind of payload transfer.
Variants§
ExplicitCopy
Explicit named copy (never implied).
ZeroCopyHandoff
Zero-copy handoff when both ends agree.
Trait Implementations§
Source§impl Clone for TransferKind
impl Clone for TransferKind
Source§fn clone(&self) -> TransferKind
fn clone(&self) -> TransferKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferKind
impl Debug for TransferKind
Source§impl Hash for TransferKind
impl Hash for TransferKind
Source§impl PartialEq for TransferKind
impl PartialEq for TransferKind
Source§fn eq(&self, other: &TransferKind) -> bool
fn eq(&self, other: &TransferKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransferKind
impl Eq for TransferKind
impl StructuralPartialEq for TransferKind
Auto Trait Implementations§
impl Freeze for TransferKind
impl RefUnwindSafe for TransferKind
impl Send for TransferKind
impl Sync for TransferKind
impl Unpin for TransferKind
impl UnsafeUnpin for TransferKind
impl UnwindSafe for TransferKind
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