[][src]Struct heng_rs::SharedSchedulerSender

pub struct SharedSchedulerSender<M>(_);

Methods

impl<M: Send + 'static> SharedSchedulerSender<M>[src]

pub async fn send<'_>(&'_ self, msg: M) -> Result<(), SendError>[src]

pub fn do_send(&self, msg: M)[src]

send message and ignore the result.

pub fn start(&self) -> impl Future<Output = Result<(), SendError>> + '_[src]

pub fn stop(&self) -> impl Future<Output = Result<(), SendError>> + '_[src]

pub fn change_time(
    &self,
    time: impl Into<Duration>
) -> impl Future<Output = Result<(), SendError>> + '_
[src]

Auto Trait Implementations

impl<M> Send for SharedSchedulerSender<M> where
    M: Send

impl<M> Sync for SharedSchedulerSender<M> where
    M: Send

impl<M> Unpin for SharedSchedulerSender<M>

impl<M> UnwindSafe for SharedSchedulerSender<M>

impl<M> RefUnwindSafe for SharedSchedulerSender<M>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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