pub struct EmbeddedConversationHandle { /* private fields */ }Expand description
Conversation handle that sends through direct in-process references.
Implementations§
Source§impl EmbeddedConversationHandle
impl EmbeddedConversationHandle
Sourcepub fn new(config: &EmbeddedConfig) -> Self
pub fn new(config: &EmbeddedConfig) -> Self
Creates an embedded conversation handle from direct in-process configuration.
Sourcepub const fn conversation_id(&self) -> &ConversationId
pub const fn conversation_id(&self) -> &ConversationId
Returns the application-visible conversation identifier.
Trait Implementations§
Source§impl Clone for EmbeddedConversationHandle
impl Clone for EmbeddedConversationHandle
Source§fn clone(&self) -> EmbeddedConversationHandle
fn clone(&self) -> EmbeddedConversationHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConversationHandle for EmbeddedConversationHandle
impl ConversationHandle for EmbeddedConversationHandle
Source§type ReceiveFuture<'a, M> = ReadyResult<M>
where
Self: 'a,
M: DeserializeOwned + 'a
type ReceiveFuture<'a, M> = ReadyResult<M> where Self: 'a, M: DeserializeOwned + 'a
Future returned by
receive for message type M.Source§type LifecycleStream = EmptyLifecycleStream
type LifecycleStream = EmptyLifecycleStream
Stream returned by
lifecycle.Source§fn send<M>(&self, message: M) -> Result<(), SdkError>where
M: Serialize,
fn send<M>(&self, message: M) -> Result<(), SdkError>where
M: Serialize,
Sends a typed message within this conversation. Read more
Source§fn receive<M>(&self) -> ReadyResult<M> ⓘwhere
M: DeserializeOwned,
fn receive<M>(&self) -> ReadyResult<M> ⓘwhere
M: DeserializeOwned,
Receives the next typed message from this conversation. Read more
Source§fn lifecycle(&self) -> Self::LifecycleStream
fn lifecycle(&self) -> Self::LifecycleStream
Observes lifecycle events for this conversation.
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddedConversationHandle
impl !UnwindSafe for EmbeddedConversationHandle
impl Freeze for EmbeddedConversationHandle
impl Send for EmbeddedConversationHandle
impl Sync for EmbeddedConversationHandle
impl Unpin for EmbeddedConversationHandle
impl UnsafeUnpin for EmbeddedConversationHandle
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