pub struct Span {Show 17 fields
pub trace_id: Vec<u8>,
pub span_id: Vec<u8>,
pub trace_state: String,
pub parent_span_id: Vec<u8>,
pub flags: u32,
pub name: String,
pub kind: SpanKind,
pub start_time_unix_nano: u64,
pub end_time_unix_nano: u64,
pub attributes: Vec<KeyValue>,
pub dropped_attributes_count: u32,
pub events: Vec<Event>,
pub dropped_events_count: u32,
pub links: Vec<Link>,
pub dropped_links_count: u32,
pub status: Status,
pub _has: _Hazzer,
}
Fields§
§trace_id: Vec<u8>
§span_id: Vec<u8>
§trace_state: String
§parent_span_id: Vec<u8>
§flags: u32
§name: String
§kind: SpanKind
§start_time_unix_nano: u64
§end_time_unix_nano: u64
§attributes: Vec<KeyValue>
§dropped_attributes_count: u32
§events: Vec<Event>
§dropped_events_count: u32
§links: Vec<Link>
§dropped_links_count: u32
§status: Status
§_has: _Hazzer
Implementations§
Source§impl Span
impl Span
Sourcepub fn mut_status(&mut self) -> Option<&mut Status>
pub fn mut_status(&mut self) -> Option<&mut Status>
Return a mutable reference to status
as an Option
Sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Set the value and presence of status
Sourcepub fn clear_status(&mut self)
pub fn clear_status(&mut self)
Clear the presence of status
Trait Implementations§
Source§impl MessageDecode for Span
impl MessageDecode for Span
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for Span
impl MessageEncode for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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