Struct hyper_zipkin::XB3Sampled
[−]
[src]
pub struct XB3Sampled(pub bool);
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
.
Trait Implementations
impl Copy for XB3Sampled
[src]
impl Clone for XB3Sampled
[src]
fn clone(&self) -> XB3Sampled
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for XB3Sampled
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for XB3Sampled
[src]
fn eq(&self, __arg_0: &XB3Sampled) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XB3Sampled) -> bool
[src]
This method tests for !=
.
impl Deref for XB3Sampled
[src]
type Target = bool
The resulting type after dereferencing.
fn deref(&self) -> &bool
[src]
Dereferences the value.
impl DerefMut for XB3Sampled
[src]
impl Header for XB3Sampled
[src]
fn header_name() -> &'static str
[src]
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<XB3Sampled>
[src]
Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, fmt: &mut Formatter) -> Result
[src]
Format a header to outgoing stream. Read more