pub struct Frame {
pub kind: MessageKind,
pub flags: Flags,
pub stream_id: u16,
pub correlation_id: u64,
pub payload: Vec<u8>,
}Fields§
§kind: MessageKind§flags: Flags§stream_id: u16§correlation_id: u64§payload: Vec<u8>Implementations§
Source§impl Frame
impl Frame
pub fn new(kind: MessageKind, correlation_id: u64, payload: Vec<u8>) -> Self
pub fn with_stream(self, stream_id: u16) -> Self
pub fn with_flags(self, flags: Flags) -> Self
pub fn encoded_len(&self) -> u32
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin 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