Skip to main content

ErrorExt

Trait ErrorExt 

Source
pub trait ErrorExt: Seal {
    // Provided method
    fn is_cancelled(&self) -> bool { ... }
}
Expand description

Extension trait for io::Error and results with it.

Provided Methods§

Source

fn is_cancelled(&self) -> bool

Whether the error or result is cancelled.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ErrorExt for Error

Source§

impl<T> ErrorExt for Result<T>

Source§

impl<T, B> ErrorExt for BufResult<T, B>

Implementors§