[−][src]Struct heng_rs::SharedSchedulerSender
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]
&self,
time: impl Into<Duration>
) -> impl Future<Output = Result<(), SendError>> + '_
Auto Trait Implementations
impl<M> Send for SharedSchedulerSender<M> where
M: Send,
M: Send,
impl<M> Sync for SharedSchedulerSender<M> where
M: Send,
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]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,