Enum uefi::fs::IoErrorContext
source · pub enum IoErrorContext {
CantDeleteDirectory,
CantDeleteFile,
FlushFailure,
CantOpenVolume,
Metadata,
OpenError,
ReadFailure,
WriteFailure,
NotADirectory,
NotAFile,
}
Available on crate feature
alloc
only.Expand description
Enum that further specifies the context in that an Error
occurred.
Variants§
CantDeleteDirectory
Can’t delete the directory.
CantDeleteFile
Can’t delete the file.
FlushFailure
Error flushing file.
CantOpenVolume
Can’t open the root directory of the underlying volume.
Metadata
Error while reading the metadata of the file.
OpenError
Could not open the given path. One possible reason is that the file does not exist.
ReadFailure
Error reading file.
WriteFailure
Error writing bytes.
NotADirectory
The path exists but does not correspond to a directory when a directory was expected.
NotAFile
The path exists but does not correspond to a file when a file was expected.
Trait Implementations§
source§impl Clone for IoErrorContext
impl Clone for IoErrorContext
source§fn clone(&self) -> IoErrorContext
fn clone(&self) -> IoErrorContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IoErrorContext
impl Debug for IoErrorContext
source§impl Display for IoErrorContext
impl Display for IoErrorContext
source§impl PartialEq for IoErrorContext
impl PartialEq for IoErrorContext
source§fn eq(&self, other: &IoErrorContext) -> bool
fn eq(&self, other: &IoErrorContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IoErrorContext
impl StructuralPartialEq for IoErrorContext
Auto Trait Implementations§
impl Freeze for IoErrorContext
impl RefUnwindSafe for IoErrorContext
impl Send for IoErrorContext
impl Sync for IoErrorContext
impl Unpin for IoErrorContext
impl UnwindSafe for IoErrorContext
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