Struct async_speed_limit::clock::StandardClock[][src]

pub struct StandardClock;

The physical clock using std::time::Instant.

The sleeping future is based on futures-timer. Blocking sleep uses std::thread::sleep().

Trait Implementations

impl BlockingClock for StandardClock[src]

impl Clock for StandardClock[src]

type Instant = Instant

Type to represent a point of time. Read more

type Delay = Delay

Future type returned by sleep().

impl Clone for StandardClock[src]

impl Copy for StandardClock[src]

impl Debug for StandardClock[src]

impl Default for StandardClock[src]

Auto Trait Implementations

impl RefUnwindSafe for StandardClock

impl Send for StandardClock

impl Sync for StandardClock

impl Unpin for StandardClock

impl UnwindSafe for StandardClock

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.