pub enum SdkConversationHandle {
Embedded(EmbeddedConversationHandle),
Remote(RemoteConversationHandle),
}Expand description
Runtime-selected conversation handle that keeps deployment differences behind configuration.
Variants§
Embedded(EmbeddedConversationHandle)
Embedded direct in-process handle.
Remote(RemoteConversationHandle)
Remote protocol-backed handle.
Implementations§
Trait Implementations§
Source§impl Clone for SdkConversationHandle
impl Clone for SdkConversationHandle
Source§fn clone(&self) -> SdkConversationHandle
fn clone(&self) -> SdkConversationHandle
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 SdkConversationHandle
impl ConversationHandle for SdkConversationHandle
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 SdkConversationHandle
impl !UnwindSafe for SdkConversationHandle
impl Freeze for SdkConversationHandle
impl Send for SdkConversationHandle
impl Sync for SdkConversationHandle
impl Unpin for SdkConversationHandle
impl UnsafeUnpin for SdkConversationHandle
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