#[non_exhaustive]pub enum PayloadKind {
Inline,
ZeroCopy,
}Expand description
Where a payload’s bytes live.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Inline
Bytes owned by this process, carried on the control channel.
ZeroCopy
A pinned slot in a shared-memory ring (§6.2).
Implementations§
Source§impl PayloadKind
impl PayloadKind
Trait Implementations§
Source§impl Clone for PayloadKind
impl Clone for PayloadKind
impl Copy for PayloadKind
Source§impl Debug for PayloadKind
impl Debug for PayloadKind
Source§impl Display for PayloadKind
impl Display for PayloadKind
impl Eq for PayloadKind
Source§impl Hash for PayloadKind
impl Hash for PayloadKind
Source§impl PartialEq for PayloadKind
impl PartialEq for PayloadKind
impl StructuralPartialEq for PayloadKind
Auto Trait Implementations§
impl Freeze for PayloadKind
impl RefUnwindSafe for PayloadKind
impl Send for PayloadKind
impl Sync for PayloadKind
impl Unpin for PayloadKind
impl UnsafeUnpin for PayloadKind
impl UnwindSafe for PayloadKind
Blanket Implementations§
impl<T> Allocation for T
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