pub struct SessionActor<M> { /* private fields */ }Expand description
Handle to a dedicated session actor.
The mailbox is bounded so producers apply backpressure instead of growing
memory without limit. The actor has its own thread; callers on Tokio worker
threads use Self::send and await capacity rather than blocking workers.
Implementations§
Source§impl<M: Send + 'static> SessionActor<M>
impl<M: Send + 'static> SessionActor<M>
Trait Implementations§
Source§impl<M: Send + 'static> Clone for SessionActor<M>
impl<M: Send + 'static> Clone for SessionActor<M>
Auto Trait Implementations§
impl<M> Freeze for SessionActor<M>
impl<M> RefUnwindSafe for SessionActor<M>
impl<M> Send for SessionActor<M>where
M: Send,
impl<M> Sync for SessionActor<M>where
M: Send,
impl<M> Unpin for SessionActor<M>
impl<M> UnsafeUnpin for SessionActor<M>
impl<M> UnwindSafe for SessionActor<M>
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