pub struct SdkBackendBuilder { /* private fields */ }Expand description
Builder for SdkBackend.
Implementations§
Source§impl SdkBackendBuilder
impl SdkBackendBuilder
Sourcepub fn api_base_url(self, api_base_url: impl Into<String>) -> Self
pub fn api_base_url(self, api_base_url: impl Into<String>) -> Self
Sets the Inline API base URL.
Sourcepub fn realtime_url(self, realtime_url: impl Into<String>) -> Self
pub fn realtime_url(self, realtime_url: impl Into<String>) -> Self
Sets the Inline realtime WebSocket URL.
Sourcepub fn identity(self, identity: ClientIdentity) -> Self
pub fn identity(self, identity: ClientIdentity) -> Self
Sets the client identity sent through SDK transports.
Sourcepub fn store(self, store: impl ClientStore) -> Self
pub fn store(self, store: impl ClientStore) -> Self
Sets the client store.
Sets a shared client store.
Sourcepub fn enable_realtime_handshake(self) -> Self
pub fn enable_realtime_handshake(self) -> Self
Enables realtime handshake using the SDK realtime connector.
Sourcepub fn realtime_connector(self, connector: impl RealtimeConnector) -> Self
pub fn realtime_connector(self, connector: impl RealtimeConnector) -> Self
Sets a custom realtime connector.
Sets a shared realtime connector.
Sourcepub fn without_realtime_handshake(self) -> Self
pub fn without_realtime_handshake(self) -> Self
Disables realtime handshake on connect.
Sourcepub fn build(self) -> Result<SdkBackend, SdkBackendBuildError>
pub fn build(self) -> Result<SdkBackend, SdkBackendBuildError>
Builds an SDK-backed backend.
Trait Implementations§
Source§impl Clone for SdkBackendBuilder
impl Clone for SdkBackendBuilder
Source§fn clone(&self) -> SdkBackendBuilder
fn clone(&self) -> SdkBackendBuilder
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 Debug for SdkBackendBuilder
impl Debug for SdkBackendBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for SdkBackendBuilder
impl !UnwindSafe for SdkBackendBuilder
impl Freeze for SdkBackendBuilder
impl Send for SdkBackendBuilder
impl Sync for SdkBackendBuilder
impl Unpin for SdkBackendBuilder
impl UnsafeUnpin for SdkBackendBuilder
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