pub enum Listener<T> {
Once(Box<dyn Fn(&T)>),
Durable(Rc<dyn Fn(&T)>),
}
Variants§
Auto Trait Implementations§
impl<T> Freeze for Listener<T>
impl<T> !RefUnwindSafe for Listener<T>
impl<T> !Send for Listener<T>
impl<T> !Sync for Listener<T>
impl<T> Unpin for Listener<T>
impl<T> !UnwindSafe for Listener<T>
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