pub struct Closer { /* private fields */ }Expand description
Clonable handle for closing the session or server that created it.
From super::Session::closer, it closes that session, with the semantics of
super::Session::close. From super::Server::closer, it closes the server
and its active session, with the semantics of super::Server::close.
Its target never changes: a session’s closer cannot affect a successor session.
This handle does not keep its owner open. Dropping it does not close anything.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Closer
impl RefUnwindSafe for Closer
impl Send for Closer
impl Sync for Closer
impl Unpin for Closer
impl UnsafeUnpin for Closer
impl UnwindSafe for Closer
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