pub struct Registration { /* private fields */ }Expand description
Removes one listener. Call Registration::remove to remove it; calling it
again does nothing.
Dropping a Registration keeps the listener registered, so a listener that
stays for the life of the channel needs no binding.
Implementations§
Source§impl Registration
impl Registration
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Registration
impl !UnwindSafe for Registration
impl Freeze for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
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