[][src]Struct snooze::Nofifier

pub struct Nofifier<T> { /* fields omitted */ }

Implementations

impl<T: Sync + Send + 'static> Nofifier<T>[src]

pub fn new() -> Self[src]

pub fn notify_afer(&self, duration: Duration, message: T)[src]

pub async fn next<'_>(&'_ mut self) -> Option<T>[src]

impl<T: Sync + Send + 'static + Clone> Nofifier<T>[src]

pub fn notify_interval(
    &self,
    duration: Duration,
    message: T
) -> NotifyIntervalHandle
[src]

Sends a message T every duration. Returns a handle to the task that shutsdown the task on drop.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Nofifier<T>

impl<T> Send for Nofifier<T> where
    T: Send

impl<T> Sync for Nofifier<T> where
    T: Send

impl<T> Unpin for Nofifier<T>

impl<T> !UnwindSafe for Nofifier<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.