pub struct Conversation { /* private fields */ }Implementations§
Source§impl Conversation
impl Conversation
pub fn start(conversation_id: impl Into<String>) -> Self
pub fn spawn_child(&self, conversation_id: impl Into<String>) -> Self
pub const fn message<Payload>( &self, payload: Payload, ) -> ConversationMessage<Payload>
pub fn name(&self) -> &str
pub const fn trace_context(&self) -> TraceContext
pub const fn parent_trace_context(&self) -> Option<TraceContext>
pub fn finish(self) -> FinishedSpan
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnsafeUnpin for Conversation
impl UnwindSafe for Conversation
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