Struct XHeader
#[repr(C, packed(1))]pub struct XHeader {
pub prefix: AB<[u8; 3]>,
pub xflags: XFlags,
pub xhop: U32,
pub xstamp: U64,
pub xbits: Xbits,
}
Expand description
Variable fields in a crate::Point
Fields§
§prefix: AB<[u8; 3]>
§xflags: XFlags
§xhop: U32
§xstamp: U64
§xbits: Xbits
Implementations§
§impl XHeader
impl XHeader
pub const EMPTY: XHeader
pub const CLEAR_ALL: XHeader = XHeader::EMPTY
pub const KEEP_FLAG_AND_HOP: XHeader
pub const KEEP_FLAGS: XHeader
pub const KEEP_HOP: XHeader
pub const CLEAR_STAMP: XHeader
pub const KEEP_ALL: XHeader
pub fn incr_xhop(&mut self)
pub const fn as_bytes(&self) -> &[u8; 32]
pub const fn as_mut_bytes(&mut self) -> &mut [u8; 32]
pub const fn cfrom(b: [u8; 32]) -> XHeader
pub const fn cinto(self) -> [u8; 32]
pub fn xflags_u8(&self) -> &u8
pub fn mut_xflags_u8(&mut self) -> &mut u8
pub const fn plus(self, other: XHeader) -> XHeader
pub fn mask(&mut self, keep_mask: XHeader)
Trait Implementations§
§impl SetXHeader for XHeader
impl SetXHeader for XHeader
fn set_xheader(&self, header: &mut XHeader)
impl Copy for XHeader
impl Eq for XHeader
Auto Trait Implementations§
impl Freeze for XHeader
impl RefUnwindSafe for XHeader
impl Send for XHeader
impl Sync for XHeader
impl Unpin for XHeader
impl UnwindSafe for XHeader
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more