Struct amplify::IoError [−][src]
pub struct IoError(_);
Expand description
Copyable & cloneable I/O error type represented by the error kind function.
Available only when both std
and derive
features are present.
Example
use amplify::{IoError, Error, Display, From}; #[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 BorrowMut<<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]
fn borrow_mut(&mut self) -> &mut Self::Inner
[src]Mutably borrows from an owned value. Read more
impl Error for IoError
[src]
impl Error for IoError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl Ord for IoError
[src]
impl Ord for IoError
[src]impl PartialOrd<IoError> for IoError
[src]
impl PartialOrd<IoError> for IoError
[src]fn partial_cmp(&self, other: &IoError) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &IoError) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Wrapper for IoError
[src]
impl Wrapper for IoError
[src]fn from_inner(inner: Self::Inner) -> Self
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]Instantiates wrapper type with the inner data
fn as_inner(&self) -> &Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]Returns reference to the inner representation for the wrapper type
fn as_inner_mut(&mut self) -> &mut Self::Inner
[src]
fn as_inner_mut(&mut self) -> &mut Self::Inner
[src]Returns a mutable reference to the inner representation for the wrapper type Read more
fn into_inner(self) -> Self::Inner
[src]
fn into_inner(self) -> Self::Inner
[src]Unwraps the wrapper returning the inner type
impl Copy for IoError
[src]
impl Eq for IoError
[src]
impl StructuralEq for IoError
[src]
impl StructuralPartialEq for IoError
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more