pub struct StartSpanOptions<'a, S: 'a, T: 'a> { /* private fields */ }Expand description
Options for starting a span.
Implementations§
Source§impl<'a, S, T: 'a> StartSpanOptions<'a, S, T>where
S: Sampler<T> + 'a,
impl<'a, S, T: 'a> StartSpanOptions<'a, S, T>where
S: Sampler<T> + 'a,
Sourcepub fn start_time(self, time: SystemTime) -> Self
pub fn start_time(self, time: SystemTime) -> Self
Sets the start time of this span.
Sourcepub fn follows_from<C>(self, context: &C) -> Self
pub fn follows_from<C>(self, context: &C) -> Self
Adds the FollowsFrom reference to this span.
Sourcepub fn start(self) -> Span<T>where
T: for<'b> From<CandidateSpan<'b, T>>,
pub fn start(self) -> Span<T>where
T: for<'b> From<CandidateSpan<'b, T>>,
Starts a new span.
Sourcepub fn start_with_state(self, state: T) -> Span<T>
pub fn start_with_state(self, state: T) -> Span<T>
Starts a new span with the explicit state.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S, T> Freeze for StartSpanOptions<'a, S, T>
impl<'a, S, T> RefUnwindSafe for StartSpanOptions<'a, S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, S, T> Send for StartSpanOptions<'a, S, T>
impl<'a, S, T> Sync for StartSpanOptions<'a, S, T>
impl<'a, S, T> Unpin for StartSpanOptions<'a, S, T>where
T: Unpin,
impl<'a, S, T> UnwindSafe for StartSpanOptions<'a, S, T>where
S: RefUnwindSafe,
T: UnwindSafe,
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