Struct Elapsed

pub struct Elapsed(/* private field */);

Errors returned by Timeout.

This error is returned when a timeout expires before the function was able to finish.

Trait Implementations

impl Debug for Elapsed

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for Elapsed

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

impl Eq for Elapsed

impl Error for Elapsed

impl PartialEq for Elapsed

fn eq(&self, other: &Elapsed) -> bool

impl StructuralPartialEq for Elapsed

Auto Trait Implementations

impl Freeze for Elapsed

impl RefUnwindSafe for Elapsed

impl Send for Elapsed

impl Sync for Elapsed

impl Unpin for Elapsed

impl UnsafeUnpin for Elapsed

impl UnwindSafe for Elapsed

Blanket Implementations

impl<T> Any for Elapsed where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Elapsed

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for Elapsed where T: Display + ?Sized,

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>