1.0.0[−][src]Struct futures::io::Error
The error type for I/O operations of the Read
, Write
, Seek
, and
associated traits.
Errors mostly originate from the underlying OS, but custom instances of
Error
can be created with crafted error messages and a particular value of
ErrorKind
.
Methods
impl Error
[src][−]
pub fn new<E>(kind: ErrorKind, error: E) -> Error where
E: Into<Box<dyn Error + 'static + Send + Sync>>,
[src][+]
E: Into<Box<dyn Error + 'static + Send + Sync>>,
pub fn last_os_error() -> Error
[src][+]
pub fn from_raw_os_error(code: i32) -> Error
[src][+]
pub fn raw_os_error(&self) -> Option<i32>
[src][+]
pub fn get_ref(&self) -> Option<&(dyn Error + 'static + Send + Sync)>
1.3.0[src][+]
pub fn get_mut(&mut self) -> Option<&mut (dyn Error + 'static + Send + Sync)>
1.3.0[src][+]
pub fn into_inner(self) -> Option<Box<dyn Error + 'static + Send + Sync>>
1.3.0[src][+]
pub fn kind(&self) -> ErrorKind
[src][+]
Trait Implementations
impl Debug for Error
[src][+]
impl Error for Error
[src][+]
impl From<ErrorKind> for Error
1.14.0[src][+]
impl<W> From<IntoInnerError<W>> for Error
[src][+]
impl From<NulError> for Error
[src][+]
impl Display for Error
[src][+]
impl From<Error> for Error
[src][+]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> From for T
[src][+]
impl<T, U> Into for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T> Borrow for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,