pub struct MetadataFlags(/* private fields */);Expand description
Metadata entry flags.
Flags control metadata handling behavior.
Implementations§
Source§impl MetadataFlags
impl MetadataFlags
Sourcepub const NONE: MetadataFlags
pub const NONE: MetadataFlags
No special handling.
Sourcepub const SENSITIVE: MetadataFlags
pub const SENSITIVE: MetadataFlags
Value MUST NOT be logged, traced, or included in error messages.
Sourcepub const NO_PROPAGATE: MetadataFlags
pub const NO_PROPAGATE: MetadataFlags
Value MUST NOT be forwarded to downstream calls.
Sourcepub fn contains(self, other: MetadataFlags) -> bool
pub fn contains(self, other: MetadataFlags) -> bool
Returns true if all flags in other are set in self.
Trait Implementations§
Source§impl BitAnd for MetadataFlags
impl BitAnd for MetadataFlags
Source§type Output = MetadataFlags
type Output = MetadataFlags
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: MetadataFlags) -> MetadataFlags
fn bitand(self, rhs: MetadataFlags) -> MetadataFlags
Performs the
& operation. Read moreSource§impl BitAndAssign for MetadataFlags
impl BitAndAssign for MetadataFlags
Source§fn bitand_assign(&mut self, rhs: MetadataFlags)
fn bitand_assign(&mut self, rhs: MetadataFlags)
Performs the
&= operation. Read moreSource§impl BitOr for MetadataFlags
impl BitOr for MetadataFlags
Source§type Output = MetadataFlags
type Output = MetadataFlags
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: MetadataFlags) -> MetadataFlags
fn bitor(self, rhs: MetadataFlags) -> MetadataFlags
Performs the
| operation. Read moreSource§impl BitOrAssign for MetadataFlags
impl BitOrAssign for MetadataFlags
Source§fn bitor_assign(&mut self, rhs: MetadataFlags)
fn bitor_assign(&mut self, rhs: MetadataFlags)
Performs the
|= operation. Read moreSource§impl Clone for MetadataFlags
impl Clone for MetadataFlags
Source§fn clone(&self) -> MetadataFlags
fn clone(&self) -> MetadataFlags
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 MetadataFlags
impl Debug for MetadataFlags
Source§impl<'ʄ> Facet<'ʄ> for MetadataFlags
impl<'ʄ> Facet<'ʄ> for MetadataFlags
Source§impl PartialEq for MetadataFlags
impl PartialEq for MetadataFlags
impl Copy for MetadataFlags
impl Eq for MetadataFlags
impl StructuralPartialEq for MetadataFlags
Auto Trait Implementations§
impl Freeze for MetadataFlags
impl RefUnwindSafe for MetadataFlags
impl Send for MetadataFlags
impl Sync for MetadataFlags
impl Unpin for MetadataFlags
impl UnsafeUnpin for MetadataFlags
impl UnwindSafe for MetadataFlags
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.