pub struct SpanBuilder<S: SpanSubmitter> { /* private fields */ }Implementations§
Source§impl<S: SpanSubmitter> SpanBuilder<S>
impl<S: SpanSubmitter> SpanBuilder<S>
pub fn org_name(self, org_name: impl Into<String>) -> Self
pub fn project_name(self, project_name: impl Into<String>) -> Self
pub fn parent_info(self, parent: ParentSpanInfo) -> Self
pub fn span_type(self, span_type: SpanType) -> Self
pub fn purpose(self, purpose: impl Into<String>) -> Self
pub fn build(self) -> SpanHandle<S>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for SpanBuilder<S>
impl<S> RefUnwindSafe for SpanBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for SpanBuilder<S>
impl<S> Sync for SpanBuilder<S>
impl<S> Unpin for SpanBuilder<S>
impl<S> UnwindSafe for SpanBuilder<S>where
S: RefUnwindSafe,
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