pub struct MSTraceId(/* private fields */);Expand description
A container for a trace identifier composed by MSTraceSegments.
Implementations§
source§impl MSTraceId
impl MSTraceId
sourcepub fn sid(&self) -> MSResult<String>
pub fn sid(&self) -> MSResult<String>
Returns the FDSN source identifier.
sourcepub fn pub_version(&self) -> c_uchar
pub fn pub_version(&self) -> c_uchar
Returns the largest contributing publication version.
sourcepub fn start_time(&self) -> MSResult<OffsetDateTime>
pub fn start_time(&self) -> MSResult<OffsetDateTime>
Returns the time of the the first sample.
sourcepub fn end_time(&self) -> MSResult<OffsetDateTime>
pub fn end_time(&self) -> MSResult<OffsetDateTime>
Returns the time of the the last sample.
sourcepub fn len(&self) -> c_uint
pub fn len(&self) -> c_uint
Returns the number of MSTraceSegments for this trace identifier.
sourcepub fn iter(&self) -> MSTraceSegmentIter<'_> ⓘ
pub fn iter(&self) -> MSTraceSegmentIter<'_> ⓘ
Returns an iterator over the trace identifiers’ trace segments.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MSTraceId
impl !Send for MSTraceId
impl !Sync for MSTraceId
impl Unpin for MSTraceId
impl UnwindSafe for MSTraceId
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