pub struct XB3Sampled(pub bool);Expand description
The X-B3-Sampled header.
Its value is either 0 or 1, and indicates if the client has requested
that the context be sampled or not. It correponds to the sampled field of
a TraceContext.
Tuple Fields§
§0: boolTrait Implementations§
Source§impl Clone for XB3Sampled
impl Clone for XB3Sampled
Source§fn clone(&self) -> XB3Sampled
fn clone(&self) -> XB3Sampled
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 XB3Sampled
impl Debug for XB3Sampled
Source§impl Deref for XB3Sampled
impl Deref for XB3Sampled
Source§impl DerefMut for XB3Sampled
impl DerefMut for XB3Sampled
Source§impl Header for XB3Sampled
impl Header for XB3Sampled
Source§fn header_name() -> &'static str
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
Source§fn parse_header(raw: &Raw) -> Result<XB3Sampled>
fn parse_header(raw: &Raw) -> Result<XB3Sampled>
Parse a header from a raw stream of bytes. Read more
Source§impl PartialEq for XB3Sampled
impl PartialEq for XB3Sampled
impl Copy for XB3Sampled
impl StructuralPartialEq for XB3Sampled
Auto Trait Implementations§
impl Freeze for XB3Sampled
impl RefUnwindSafe for XB3Sampled
impl Send for XB3Sampled
impl Sync for XB3Sampled
impl Unpin for XB3Sampled
impl UnwindSafe for XB3Sampled
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