pub struct EmbeddedConfig {
pub channel_name: String,
pub conversation_id: ConversationId,
pub channel_backend: Arc<dyn EmbeddedChannelBackend>,
pub conversation_backend: Arc<dyn EmbeddedConversationBackend>,
}Expand description
Configuration for embedded SDK handles.
Fields§
§channel_name: StringApplication-visible channel name.
conversation_id: ConversationIdApplication-visible conversation identifier.
channel_backend: Arc<dyn EmbeddedChannelBackend>Direct channel backend used for in-process publication.
conversation_backend: Arc<dyn EmbeddedConversationBackend>Direct conversation backend used for in-process conversation sends.
Implementations§
Source§impl EmbeddedConfig
impl EmbeddedConfig
Sourcepub fn new(
channel_name: impl Into<String>,
conversation_id: impl Into<ConversationId>,
) -> Self
pub fn new( channel_name: impl Into<String>, conversation_id: impl Into<ConversationId>, ) -> Self
Creates embedded configuration without requiring a server address.
Sourcepub fn with_channel_backend(
self,
backend: Arc<dyn EmbeddedChannelBackend>,
) -> Self
pub fn with_channel_backend( self, backend: Arc<dyn EmbeddedChannelBackend>, ) -> Self
Replaces the direct in-process channel backend.
Sourcepub fn with_conversation_backend(
self,
backend: Arc<dyn EmbeddedConversationBackend>,
) -> Self
pub fn with_conversation_backend( self, backend: Arc<dyn EmbeddedConversationBackend>, ) -> Self
Replaces the direct in-process conversation backend.
Trait Implementations§
Source§impl Clone for EmbeddedConfig
impl Clone for EmbeddedConfig
Source§fn clone(&self) -> EmbeddedConfig
fn clone(&self) -> EmbeddedConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EmbeddedConfig
impl !UnwindSafe for EmbeddedConfig
impl Freeze for EmbeddedConfig
impl Send for EmbeddedConfig
impl Sync for EmbeddedConfig
impl Unpin for EmbeddedConfig
impl UnsafeUnpin for EmbeddedConfig
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