pub struct ConversationSpan { /* private fields */ }Implementations§
Source§impl ConversationSpan
impl ConversationSpan
pub fn new(conversation_id: impl Into<String>) -> Self
pub fn root(conversation_id: impl Into<String>) -> Self
pub fn child(&self, conversation_id: impl Into<String>) -> Self
pub fn with_parent( conversation_id: impl Into<String>, parent: TraceContext, ) -> Self
pub fn name(&self) -> &str
pub const fn context(&self) -> TraceContext
pub const fn parent(&self) -> Option<TraceContext>
pub const fn message_context(&self) -> TraceContext
pub fn finish(self) -> FinishedSpan
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConversationSpan
impl RefUnwindSafe for ConversationSpan
impl Send for ConversationSpan
impl Sync for ConversationSpan
impl Unpin for ConversationSpan
impl UnsafeUnpin for ConversationSpan
impl UnwindSafe for ConversationSpan
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