pub struct MsgHeader {
pub msg_type: Type,
pub msg_len: u64,
/* private fields */
}
Expand description
Header of any protocol message, used to identify incoming messages.
Fields§
§msg_type: Type
Type of the message.
msg_len: u64
Total length of the message in bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MsgHeader
impl RefUnwindSafe for MsgHeader
impl Send for MsgHeader
impl Sync for MsgHeader
impl Unpin for MsgHeader
impl UnwindSafe for MsgHeader
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.