Struct Elapsed

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

The timeout elapsed.

Implementations

impl Elapsed

const fn new() -> Self

Construct a new elapsed error

Trait Implementations

impl Debug for Elapsed

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

impl Default for Elapsed

fn default() -> Elapsed

impl Display for Elapsed

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

impl Error 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> Instrument for Elapsed

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

fn to_string(&self) -> String

impl<T> WithSubscriber for Elapsed

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>