pub struct Session<I: Interface + ?Sized> { /* private fields */ }Implementations§
Source§impl<I: Interface + ?Sized> Session<I>
impl<I: Interface + ?Sized> Session<I>
Sourcepub fn run(self: &Arc<Self>)
pub fn run(self: &Arc<Self>)
Begins processing the session’s FIFO. Blocks until completion (either because of termination, or due to unrecoverable error).
Sourcepub fn terminate_async(&self)
pub fn terminate_async(&self)
Asynchronously request to terminate the Session. The session’s thread will eventually stop running.
Trait Implementations§
Auto Trait Implementations§
impl<I> !Freeze for Session<I>
impl<I> !RefUnwindSafe for Session<I>
impl<I> Send for Session<I>where
I: ?Sized,
impl<I> Sync for Session<I>where
I: ?Sized,
impl<I> Unpin for Session<I>where
I: ?Sized,
impl<I> UnsafeUnpin for Session<I>where
I: ?Sized,
impl<I> !UnwindSafe for Session<I>
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