Struct ambient_std::time::Timeout
source · pub struct Timeout { /* private fields */ }
Implementations§
source§impl Timeout
impl Timeout
pub fn new(timeout: Duration) -> Self
pub fn empty() -> Self
pub fn set_duration(&mut self, timeout: Duration) -> &mut Self
pub fn reset(&mut self) -> &mut Self
pub fn is_finished(&self) -> bool
pub fn elapsed(&self) -> Duration
pub fn remaining(&self) -> Duration
pub fn duration(&self) -> Duration
Trait Implementations§
source§impl PartialEq<Timeout> for Timeout
impl PartialEq<Timeout> for Timeout
impl Eq for Timeout
impl StructuralEq for Timeout
impl StructuralPartialEq for Timeout
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.