pub struct TraceFlags(pub u8);Expand description
Trace flags (W3C compatible)
Tuple Fields§
§0: u8Implementations§
Source§impl TraceFlags
impl TraceFlags
Sourcepub fn not_sampled() -> Self
pub fn not_sampled() -> Self
Create flags with no bits set (not sampled)
Sourcepub fn is_sampled(&self) -> bool
pub fn is_sampled(&self) -> bool
Returns true if the sampled flag is set
Trait Implementations§
Source§impl Clone for TraceFlags
impl Clone for TraceFlags
Source§fn clone(&self) -> TraceFlags
fn clone(&self) -> TraceFlags
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 TraceFlags
impl Debug for TraceFlags
Source§impl Default for TraceFlags
impl Default for TraceFlags
Source§impl<'de> Deserialize<'de> for TraceFlags
impl<'de> Deserialize<'de> for TraceFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TraceFlags
impl PartialEq for TraceFlags
Source§fn eq(&self, other: &TraceFlags) -> bool
fn eq(&self, other: &TraceFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TraceFlags
impl Serialize for TraceFlags
impl Copy for TraceFlags
impl Eq for TraceFlags
impl StructuralPartialEq for TraceFlags
Auto Trait Implementations§
impl Freeze for TraceFlags
impl RefUnwindSafe for TraceFlags
impl Send for TraceFlags
impl Sync for TraceFlags
impl Unpin for TraceFlags
impl UnsafeUnpin for TraceFlags
impl UnwindSafe for TraceFlags
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§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.