pub struct ManagedClientSession { /* private fields */ }Expand description
Running managed client session.
ManagedClientSession::join waits for the worker and returns the session
outcome or client error. Dropping the session requests cooperative
cancellation; callers that need the outcome should explicitly join instead
of relying on drop.
Implementations§
Source§impl ManagedClientSession
impl ManagedClientSession
pub fn subscribe( &self, config: SubscriberConfig, ) -> Result<EventSubscription, ClientError>
pub fn stop(&self)
pub fn join(self) -> Result<SessionOutcome, ClientError>
Trait Implementations§
Source§impl Debug for ManagedClientSession
impl Debug for ManagedClientSession
Auto Trait Implementations§
impl Freeze for ManagedClientSession
impl !RefUnwindSafe for ManagedClientSession
impl Send for ManagedClientSession
impl Sync for ManagedClientSession
impl Unpin for ManagedClientSession
impl UnsafeUnpin for ManagedClientSession
impl !UnwindSafe for ManagedClientSession
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