pub struct MessageFlags(/* private fields */);Expand description
Flags in the message preamble indicating which optional frames are present.
Implementations§
Source§impl MessageFlags
impl MessageFlags
pub const HEADER_METADATA: u16
pub const FOOTER_METADATA: u16
pub const HEADER_INDEX: u16
pub const FOOTER_INDEX: u16
pub const HEADER_HASHES: u16
pub const FOOTER_HASHES: u16
Sourcepub const PRECEDER_METADATA: u16
pub const PRECEDER_METADATA: u16
At least one PrecederMetadata frame is present in the data objects section.
pub fn new(bits: u16) -> MessageFlags
pub fn bits(self) -> u16
pub fn has(self, flag: u16) -> bool
pub fn set(&mut self, flag: u16)
Sourcepub fn has_metadata(self) -> bool
pub fn has_metadata(self) -> bool
Returns true if at least one metadata frame (header or footer) is present.
Trait Implementations§
Source§impl Clone for MessageFlags
impl Clone for MessageFlags
Source§fn clone(&self) -> MessageFlags
fn clone(&self) -> MessageFlags
Returns a duplicate 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 MessageFlags
impl Debug for MessageFlags
Source§impl Default for MessageFlags
impl Default for MessageFlags
Source§fn default() -> MessageFlags
fn default() -> MessageFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessageFlags
impl PartialEq for MessageFlags
impl Copy for MessageFlags
impl Eq for MessageFlags
impl StructuralPartialEq for MessageFlags
Auto Trait Implementations§
impl Freeze for MessageFlags
impl RefUnwindSafe for MessageFlags
impl Send for MessageFlags
impl Sync for MessageFlags
impl Unpin for MessageFlags
impl UnsafeUnpin for MessageFlags
impl UnwindSafe for MessageFlags
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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