[][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


state: TimeoutStateduration: Durationstart: Instant


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DebugAny for T where
    T: Any + Debug

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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