pub struct HeaderRaw { /* private fields */ }
Expand description
The raw byte header representation, useful for encoding/decoding directly.
Implementations§
source§impl HeaderRaw
impl HeaderRaw
sourcepub fn serialize_into(&self, buf: &mut Vec<u8>) -> Result<(), MessageError>
pub fn serialize_into(&self, buf: &mut Vec<u8>) -> Result<(), MessageError>
Writes the header into the given buffer, which must have a capacity of at least 4.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeaderRaw
impl RefUnwindSafe for HeaderRaw
impl Send for HeaderRaw
impl Sync for HeaderRaw
impl Unpin for HeaderRaw
impl UnwindSafe for HeaderRaw
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