pub enum Payload {
Inline,
Owned(Vec<u8>),
Bytes(Bytes),
}Expand description
Payload storage for a frame.
Variants§
Inline
Payload bytes live inside MsgDesc::inline_payload.
Owned(Vec<u8>)
Payload bytes are owned as a heap allocation.
Bytes(Bytes)
Payload bytes are stored in a ref-counted buffer (cheap clone).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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