pub struct SessionSourceInitiatorBuilder<'a, S> { /* private fields */ }Implementations§
Source§impl<'a, S> SessionSourceInitiatorBuilder<'a, S>
impl<'a, S> SessionSourceInitiatorBuilder<'a, S>
pub fn parity(self, parity: Parity) -> Self
pub fn root_settings(self, settings: ConnectionSettings) -> Self
pub fn max_concurrent_requests(self, max_concurrent_requests: u32) -> Self
pub fn channel_capacity(self, channel_capacity: u32) -> Self
pub fn observer(self, observer: impl VoxObserver) -> Self
pub fn observer_handle(self, observer: VoxObserverHandle) -> Self
pub fn metadata(self, metadata: Metadata<'a>) -> Self
pub fn on_connection(self, acceptor: impl ConnectionAcceptor) -> Self
pub fn keepalive(self, keepalive: SessionKeepaliveConfig) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
pub fn recovery_timeout(self, timeout: Duration) -> Self
pub fn resumable(self) -> Self
Sourcepub fn non_resumable(self) -> Self
pub fn non_resumable(self) -> Self
Disable session resumability. Useful for IPC transports where
the peer is a process: when the process exits the connection
is gone for good, there’s nothing to resume against, and
keeping the session alive in recovery mode just leaks
per-channel state (e.g. server-side Tx<T>s never observing
that the client disconnected).
pub fn operation_store(self, operation_store: Arc<dyn OperationStore>) -> Self
pub fn spawn_fn(self, f: impl FnOnce(BoxSessionFuture) + Send + 'static) -> Self
pub async fn establish<Client: FromVoxSession>( self, ) -> Result<Client, SessionError>
Auto Trait Implementations§
impl<'a, S> Freeze for SessionSourceInitiatorBuilder<'a, S>where
S: Freeze,
impl<'a, S> !RefUnwindSafe for SessionSourceInitiatorBuilder<'a, S>
impl<'a, S> Send for SessionSourceInitiatorBuilder<'a, S>where
S: Send,
impl<'a, S> !Sync for SessionSourceInitiatorBuilder<'a, S>
impl<'a, S> Unpin for SessionSourceInitiatorBuilder<'a, S>where
S: Unpin,
impl<'a, S> UnsafeUnpin for SessionSourceInitiatorBuilder<'a, S>where
S: UnsafeUnpin,
impl<'a, S> !UnwindSafe for SessionSourceInitiatorBuilder<'a, S>
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