pub enum SdkConfig {
Embedded(EmbeddedConfig),
Remote(RemoteConfig),
}Expand description
Deployment-mode configuration used by the SDK builders.
Variants§
Embedded(EmbeddedConfig)
Direct in-process deployment with no server address or sockets.
Remote(RemoteConfig)
Remote deployment using the SDK-internal wire protocol transport.
Implementations§
Source§impl SdkConfig
impl SdkConfig
Sourcepub const fn embedded(config: EmbeddedConfig) -> Self
pub const fn embedded(config: EmbeddedConfig) -> Self
Creates embedded deployment configuration.
Sourcepub const fn remote(config: RemoteConfig) -> Self
pub const fn remote(config: RemoteConfig) -> Self
Creates remote deployment configuration.
Sourcepub fn channel_handle(&self) -> Result<SdkChannelHandle, SdkError>
pub fn channel_handle(&self) -> Result<SdkChannelHandle, SdkError>
Sourcepub fn conversation_handle(&self) -> Result<SdkConversationHandle, SdkError>
pub fn conversation_handle(&self) -> Result<SdkConversationHandle, SdkError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SdkConfig
impl !UnwindSafe for SdkConfig
impl Freeze for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnsafeUnpin for SdkConfig
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