#[non_exhaustive]pub enum SpanKind {
Internal,
Server,
Client,
Producer,
Consumer,
}Expand description
A hint about the way a span and its child are linked.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Internal
Internal spans represent operations which do not cross a process boundary.
Server
Server-side handling of an RPC or other remote network request.
Paired with a Client.
Client
A request to some remote service.
Paired with a Server.
Producer
A producer sending a message to a broker.
Paired with a Consumer.
Consumer
A consumer receiving a message from a broker.
Paired with a Producer.
Implementations§
Trait Implementations§
Source§impl<'v> FromValue<'v> for SpanKind
impl<'v> FromValue<'v> for SpanKind
Source§fn from_value(value: Value<'v>) -> Option<Self>
fn from_value(value: Value<'v>) -> Option<Self>
Perform the conversion.
Source§impl Value for SpanKind
Available on crate feature sval only.
impl Value for SpanKind
Available on crate feature
sval only.Source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S,
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S, ) -> Result
Stream this value through a
Stream.Source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.
impl Copy for SpanKind
impl Eq for SpanKind
impl StructuralPartialEq for SpanKind
Auto Trait Implementations§
impl Freeze for SpanKind
impl RefUnwindSafe for SpanKind
impl Send for SpanKind
impl Sync for SpanKind
impl Unpin for SpanKind
impl UnwindSafe for SpanKind
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