Enum mz_ore::future::TimeoutError
source · pub enum TimeoutError<E> {
DeadlineElapsed,
Inner(E),
}
Available on crate feature
async
only.Expand description
The error returned by timeout
and timeout_at
.
Variants§
Trait Implementations§
source§impl<E: Clone> Clone for TimeoutError<E>
impl<E: Clone> Clone for TimeoutError<E>
source§fn clone(&self) -> TimeoutError<E>
fn clone(&self) -> TimeoutError<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug> Debug for TimeoutError<E>
impl<E: Debug> Debug for TimeoutError<E>
source§impl<E> Display for TimeoutError<E>where
E: Display,
impl<E> Display for TimeoutError<E>where
E: Display,
source§impl<E> Error for TimeoutError<E>where
E: Error + 'static,
impl<E> Error for TimeoutError<E>where
E: Error + 'static,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<E: Hash> Hash for TimeoutError<E>
impl<E: Hash> Hash for TimeoutError<E>
source§impl<E: Ord> Ord for TimeoutError<E>
impl<E: Ord> Ord for TimeoutError<E>
source§fn cmp(&self, other: &TimeoutError<E>) -> Ordering
fn cmp(&self, other: &TimeoutError<E>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<E: PartialEq> PartialEq for TimeoutError<E>
impl<E: PartialEq> PartialEq for TimeoutError<E>
source§impl<E: PartialOrd> PartialOrd for TimeoutError<E>
impl<E: PartialOrd> PartialOrd for TimeoutError<E>
impl<E: Eq> Eq for TimeoutError<E>
impl<E> StructuralPartialEq for TimeoutError<E>
Auto Trait Implementations§
impl<E> Freeze for TimeoutError<E>where
E: Freeze,
impl<E> RefUnwindSafe for TimeoutError<E>where
E: RefUnwindSafe,
impl<E> Send for TimeoutError<E>where
E: Send,
impl<E> Sync for TimeoutError<E>where
E: Sync,
impl<E> Unpin for TimeoutError<E>where
E: Unpin,
impl<E> UnwindSafe for TimeoutError<E>where
E: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<E> ErrorExt for E
impl<E> ErrorExt for E
source§fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
Returns a type that displays the error, along with the chain of source errors or
causes, if there are any. Read more
source§fn to_string_with_causes(&self) -> String
fn to_string_with_causes(&self) -> String
Converts
self
to a string String
, along with the chain of source errors or
causes, if there are any. Read moresource§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request