pub struct SessionInitiatorBuilder<'a, C> { /* private fields */ }Implementations§
Source§impl<'a, C> SessionInitiatorBuilder<'a, C>
impl<'a, C> SessionInitiatorBuilder<'a, C>
pub fn on_connection(self, acceptor: impl ConnectionAcceptor) -> Self
pub fn keepalive(self, keepalive: SessionKeepaliveConfig) -> Self
pub fn resumable(self) -> Self
pub fn operation_store(self, operation_store: Arc<dyn OperationStore>) -> Self
Sourcepub fn spawn_fn(self, f: impl FnOnce(BoxSessionFuture) + Send + 'static) -> Self
pub fn spawn_fn(self, f: impl FnOnce(BoxSessionFuture) + Send + 'static) -> Self
Override the function used to spawn the session background task.
Defaults to tokio::spawn on non-WASM and wasm_bindgen_futures::spawn_local on WASM.
pub async fn establish<Client: From<DriverCaller>>( self, handler: impl Handler<DriverReplySink> + 'static, ) -> Result<(Client, SessionHandle), SessionError>
Auto Trait Implementations§
impl<'a, C> Freeze for SessionInitiatorBuilder<'a, C>where
C: Freeze,
impl<'a, C> !RefUnwindSafe for SessionInitiatorBuilder<'a, C>
impl<'a, C> Send for SessionInitiatorBuilder<'a, C>where
C: Send,
impl<'a, C> !Sync for SessionInitiatorBuilder<'a, C>
impl<'a, C> Unpin for SessionInitiatorBuilder<'a, C>where
C: Unpin,
impl<'a, C> UnsafeUnpin for SessionInitiatorBuilder<'a, C>where
C: UnsafeUnpin,
impl<'a, C> !UnwindSafe for SessionInitiatorBuilder<'a, C>
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