[−][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: Entry, F: FnMut(&E::Data)> FnReceiver<E, F>
[src]
Trait Implementations
impl<E: Entry, F: FnMut(&E::Data) + Clone> Clone for FnReceiver<E, F>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Entry, F: FnMut(&E::Data) + Copy> Copy for FnReceiver<E, F>
[src]
impl<E: Entry, F: FnMut(&E::Data) + Debug> Debug for FnReceiver<E, F>
[src]
impl<E: Entry, F: FnMut(&E::Data) + Default> Default for FnReceiver<E, F>
[src]
impl<E: Entry, F: FnMut(&E::Data)> Receiver<E> for FnReceiver<E, F>
[src]
impl<E: Entry, F: Fn(&E::Data), '_> Receiver<E> for &'_ FnReceiver<E, F>
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,