pub struct NetMsgHeader {
pub command: NetMsgCmd,
}
Expand description
Represents the header of a message.
Fields§
§command: NetMsgCmd
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for NetMsgHeader
impl<'__de> BorrowDecode<'__de> for NetMsgHeader
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for NetMsgHeader
impl Clone for NetMsgHeader
Source§fn clone(&self) -> NetMsgHeader
fn clone(&self) -> NetMsgHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetMsgHeader
impl Debug for NetMsgHeader
Source§impl Decode for NetMsgHeader
impl Decode for NetMsgHeader
Auto Trait Implementations§
impl Freeze for NetMsgHeader
impl RefUnwindSafe for NetMsgHeader
impl Send for NetMsgHeader
impl Sync for NetMsgHeader
impl Unpin for NetMsgHeader
impl UnwindSafe for NetMsgHeader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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