pub struct InPlaceError { /* private fields */ }Expand description
An error that can occur while opening, saving, or discarding an
InPlaceFile.
Some errors are caused by failed I/O operations, while others are responses
to invalid paths or backup specifiers. Only the first kind have source
errors, available via InPlaceError::as_io_error() and
InPlaceError::into_io_error() in addition to
std::error::Error::source().
Implementations§
Source§impl InPlaceError
impl InPlaceError
Sourcepub fn kind(&self) -> InPlaceErrorKind
pub fn kind(&self) -> InPlaceErrorKind
Returns an enum value describing the operation or check that failed
Sourcepub fn as_io_error(&self) -> Option<&Error>
pub fn as_io_error(&self) -> Option<&Error>
Returns the std::io::Error that occurred, if any. See the
documentation of InPlaceErrorKind to find out which error kinds
have source errors.
Sourcepub fn into_io_error(self) -> Option<Error>
pub fn into_io_error(self) -> Option<Error>
Consumes the InPlaceError and returns the inner std::io::Error,
if any.
Trait Implementations§
Source§impl Debug for InPlaceError
impl Debug for InPlaceError
Source§impl Display for InPlaceError
impl Display for InPlaceError
Source§impl Error for InPlaceError
impl Error for InPlaceError
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()
Auto Trait Implementations§
impl Freeze for InPlaceError
impl !RefUnwindSafe for InPlaceError
impl Send for InPlaceError
impl Sync for InPlaceError
impl Unpin for InPlaceError
impl !UnwindSafe for InPlaceError
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