pub struct Frame {
pub desc: MsgDesc,
pub payload: Payload,
}Expand description
Owned frame for sending, receiving, or routing.
Fields§
§desc: MsgDesc§payload: PayloadImplementations§
Source§impl Frame
impl Frame
pub fn new(desc: MsgDesc) -> Self
pub fn with_inline_payload(desc: MsgDesc, payload: &[u8]) -> Option<Self>
pub fn with_owned_payload(desc: MsgDesc, payload: Vec<u8>) -> Self
pub fn with_bytes_payload(desc: MsgDesc, payload: Bytes) -> Self
pub fn payload_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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