#[repr(C, packed(1))]pub struct GNUNET_MessageHeader {
pub size: u16,
pub type_: u16,
}Expand description
Header for all communications.
Fields§
§size: u16The length of the struct (in bytes, including the length field itself), in big-endian format.
type_: u16The type of the message (GNUNET_MESSAGE_TYPE_XXXX), in big-endian format.
Trait Implementations§
Source§impl Clone for GNUNET_MessageHeader
impl Clone for GNUNET_MessageHeader
Source§fn clone(&self) -> GNUNET_MessageHeader
fn clone(&self) -> GNUNET_MessageHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GNUNET_MessageHeader
impl Debug for GNUNET_MessageHeader
impl Copy for GNUNET_MessageHeader
Auto Trait Implementations§
impl Freeze for GNUNET_MessageHeader
impl RefUnwindSafe for GNUNET_MessageHeader
impl Send for GNUNET_MessageHeader
impl Sync for GNUNET_MessageHeader
impl Unpin for GNUNET_MessageHeader
impl UnsafeUnpin for GNUNET_MessageHeader
impl UnwindSafe for GNUNET_MessageHeader
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