#[non_exhaustive]pub enum HandleTimeoutError {
Overflow,
}Expand description
Errors raised by Service::handle_timeout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Overflow
A deadline arithmetic operation overflowed.
Implementations§
Source§impl HandleTimeoutError
impl HandleTimeoutError
Sourcepub const fn is_overflow(&self) -> bool
pub const fn is_overflow(&self) -> bool
Returns true if this value is of type Overflow. Returns false otherwise
Source§impl HandleTimeoutError
impl HandleTimeoutError
Sourcepub fn unwrap_overflow(self)
pub fn unwrap_overflow(self)
Unwraps this value to the HandleTimeoutError::Overflow variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_overflow_ref(&self)
pub fn unwrap_overflow_ref(&self)
Unwraps this reference to the HandleTimeoutError::Overflow variant.
Panics if this value is of any other type.
Source§impl HandleTimeoutError
impl HandleTimeoutError
Sourcepub fn try_unwrap_overflow(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_overflow(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the HandleTimeoutError::Overflow variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_overflow_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_overflow_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the HandleTimeoutError::Overflow variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for HandleTimeoutError
impl Clone for HandleTimeoutError
Source§fn clone(&self) -> HandleTimeoutError
fn clone(&self) -> HandleTimeoutError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandleTimeoutError
impl Debug for HandleTimeoutError
Source§impl Display for HandleTimeoutError
impl Display for HandleTimeoutError
Source§impl Error for HandleTimeoutError
impl Error for HandleTimeoutError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for HandleTimeoutError
impl RefUnwindSafe for HandleTimeoutError
impl Send for HandleTimeoutError
impl Sync for HandleTimeoutError
impl Unpin for HandleTimeoutError
impl UnsafeUnpin for HandleTimeoutError
impl UnwindSafe for HandleTimeoutError
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