[][src]Struct pbft_engine::timing::Timeout

pub struct Timeout {
    state: TimeoutState,
    duration: Duration,
    start: Instant,
}

A timer that expires after a given duration Check back on this timer every so often to see if it's expired

Fields

state: TimeoutStateduration: Durationstart: Instant

Implementations

impl Timeout[src]

pub fn new(duration: Duration) -> Self[src]

pub fn check_expired(&mut self) -> bool[src]

Update the timer state, and check if the timer is expired

pub fn start(&mut self)[src]

pub fn stop(&mut self)[src]

pub fn is_active(&self) -> bool[src]

Trait Implementations

impl Debug for Timeout[src]

impl<'de> Deserialize<'de> for Timeout[src]

impl Serialize for Timeout[src]

Auto Trait Implementations

impl RefUnwindSafe for Timeout

impl Send for Timeout

impl Sync for Timeout

impl Unpin for Timeout

impl UnwindSafe for Timeout

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> DebugAny for T where
    T: Any + Debug

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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> UnsafeAny for T where
    T: Any