Struct grpcio::Deadline[][src]

pub struct Deadline { /* fields omitted */ }

A time point that an rpc or operation should finished before it.

Implementations

impl Deadline[src]

pub fn exceeded(self) -> bool[src]

Checks if the deadline is exceeded.

Trait Implementations

impl Clone for Deadline[src]

impl Copy for Deadline[src]

impl From<Duration> for Deadline[src]

fn from(dur: Duration) -> Deadline[src]

Build a deadline from given duration.

The deadline will be now + duration.

Auto Trait Implementations

impl RefUnwindSafe for Deadline

impl Send for Deadline

impl Sync for Deadline

impl Unpin for Deadline

impl UnwindSafe for Deadline

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.