[−][src]Struct snooze::Nofifier
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]
&self,
duration: Duration,
message: T
) -> NotifyIntervalHandle
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,
T: Send,
impl<T> Sync for Nofifier<T> where
T: Send,
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]
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, 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>,