Struct amplify::IoError [−][src]
Copyable & cloneable I/O error type represented by the error kind function
Example
ⓘ
#[macro_use] extern crate amplify_derive; use amplify::IoError; #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, From, Debug, Display, Error)] enum Error { #[from(::std::io::Error)] #[display(inner)] Io(IoError), }
Trait Implementations
impl AsMut<<IoError as Wrapper>::Inner> for IoError
[src]
impl AsRef<<IoError as Wrapper>::Inner> for IoError
[src]
impl Borrow<<IoError as Wrapper>::Inner> for IoError
[src]
impl BorrowMut<<IoError as Wrapper>::Inner> for IoError
[src]
fn borrow_mut(&mut self) -> &mut Self::Inner
[src]
impl Clone for IoError
[src]
impl Copy for IoError
[src]
impl Debug for IoError
[src]
impl Deref for IoError
[src]
type Target = Self::Inner
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for IoError
[src]
impl Display for IoError
[src]
impl Eq for IoError
[src]
impl Error for IoError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for IoError
[src]
impl From<ErrorKind> for IoError
[src]
impl Hash for IoError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for IoError
[src]
fn cmp(&self, other: &IoError) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<IoError> for IoError
[src]
impl PartialOrd<IoError> for IoError
[src]
fn partial_cmp(&self, other: &IoError) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for IoError
[src]
impl StructuralPartialEq for IoError
[src]
impl Wrapper for IoError
[src]
type Inner = ErrorKind
Inner type wrapped by the current newtype
fn from_inner(inner: Self::Inner) -> Self
[src]
fn as_inner(&self) -> &Self::Inner
[src]
fn as_inner_mut(&mut self) -> &mut Self::Inner
[src]
fn into_inner(self) -> Self::Inner
[src]
fn to_inner(&self) -> Self::Inner
[src]
fn copy(&self) -> Self where
Self: Sized,
Self::Inner: Copy,
[src]
Self: Sized,
Self::Inner: Copy,
Auto Trait Implementations
impl RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnwindSafe for IoError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,