[−][src]Struct snec::FnReceiver
A receiver which calls a closure when notified.
Fields
closure: F
The closure which is called when the receiver is notified.
Implementations
impl<E, F> FnReceiver<E, F> where
E: Entry,
F: FnMut(&E::Data),
[src]
E: Entry,
F: FnMut(&E::Data),
Trait Implementations
impl<E, F> Clone for FnReceiver<E, F> where
E: Entry,
F: Fn(&E::Data) + Clone,
[src]
E: Entry,
F: Fn(&E::Data) + Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E, F> Copy for FnReceiver<E, F> where
E: Entry,
F: Fn(&E::Data) + Copy,
[src]
E: Entry,
F: Fn(&E::Data) + Copy,
impl<E, F> Debug for FnReceiver<E, F> where
E: Entry,
F: Fn(&E::Data) + Debug,
[src]
E: Entry,
F: Fn(&E::Data) + Debug,
impl<E, F> Default for FnReceiver<E, F> where
E: Entry,
F: Fn(&E::Data) + Default,
[src]
E: Entry,
F: Fn(&E::Data) + Default,
impl<E, F> Receiver<E> for FnReceiver<E, F> where
E: Entry,
F: FnMut(&E::Data),
[src]
E: Entry,
F: FnMut(&E::Data),
impl<E, F, '_> Receiver<E> for &'_ FnReceiver<E, F> where
E: Entry,
F: Fn(&E::Data),
[src]
E: Entry,
F: Fn(&E::Data),
Auto Trait Implementations
impl<E, F> RefUnwindSafe for FnReceiver<E, F> where
E: RefUnwindSafe,
F: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for FnReceiver<E, F> where
E: Send,
F: Send,
E: Send,
F: Send,
impl<E, F> Sync for FnReceiver<E, F> where
E: Sync,
F: Sync,
E: Sync,
F: Sync,
impl<E, F> Unpin for FnReceiver<E, F> where
E: Unpin,
F: Unpin,
E: Unpin,
F: Unpin,
impl<E, F> UnwindSafe for FnReceiver<E, F> where
E: UnwindSafe,
F: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,