Struct TokioTimer

struct TokioTimer

A Timer that uses the tokio runtime.

Implementations

impl TokioTimer

fn new() -> Self

Create a new TokioTimer

impl Clone for TokioTimer

fn clone(self: &Self) -> TokioTimer

impl Debug for TokioTimer

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for TokioTimer

fn default() -> TokioTimer

impl Freeze for TokioTimer

impl RefUnwindSafe for TokioTimer

impl Send for TokioTimer

impl Sync for TokioTimer

impl Timer for TokioTimer

fn sleep(self: &Self, duration: Duration) -> Pin<Box<dyn Sleep>>
fn sleep_until(self: &Self, deadline: Instant) -> Pin<Box<dyn Sleep>>
fn reset(self: &Self, sleep: &mut Pin<Box<dyn Sleep>>, new_deadline: Instant)

impl Unpin for TokioTimer

impl UnsafeUnpin for TokioTimer

impl UnwindSafe for TokioTimer

impl<T> Any for TokioTimer

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TokioTimer

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TokioTimer

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for TokioTimer

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for TokioTimer

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for TokioTimer

impl<T> ToOwned for TokioTimer

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for TokioTimer

impl<T, U> Into for TokioTimer

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TokioTimer

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TokioTimer

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>