#[non_exhaustive]pub enum Interruption {
Timeout(Duration),
Transport(TransportError),
Skipped,
}Expand description
What kept the answer to a request that was sent from arriving.
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.
Timeout(Duration)
The server did not answer in time.
Transport(TransportError)
The connection failed while the answer was awaited.
Skipped
The server asked for the request again and was told to skip it, because no request is sent twice.
Trait Implementations§
Source§impl Clone for Interruption
impl Clone for Interruption
Source§impl Debug for Interruption
impl Debug for Interruption
Source§impl Display for Interruption
impl Display for Interruption
impl Eq for Interruption
Source§impl Error for Interruption
impl Error for Interruption
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()
Source§impl PartialEq for Interruption
impl PartialEq for Interruption
impl StructuralPartialEq for Interruption
Auto Trait Implementations§
impl Forget for Interruption
impl Freeze for Interruption
impl Move for Interruption
impl RefUnwindSafe for Interruption
impl Send for Interruption
impl Sync for Interruption
impl Unpin for Interruption
impl UnsafeUnpin for Interruption
impl UnwindSafe for Interruption
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