pub enum IoError {
EndOfFile,
NoFreeSpace,
Unknown,
WriteProhibited,
ReadProhibited,
DeviceNotReady,
OutOfRange,
Exists,
NotFound,
EndianMismatch,
Unformatted,
BadOptions,
}
Expand description
Errors that can result from our IO routines
Variants§
EndOfFile
We have reached the end of a file for reading
NoFreeSpace
We have no remaining free space for writing
Unknown
Generic IO error
WriteProhibited
Write not allowed (read-only device)
ReadProhibited
Read not allowed (write-only device)
DeviceNotReady
The device is not ready (or formatted)
OutOfRange
The requested read/write was out of range
Exists
The requested resource already exists
NotFound
The requested resource does not exist
EndianMismatch
There was a mismatch between endianess representations (e.g. a big-endian formatted device was read on a little-endian processor)
Unformatted
The underlying filesystem (or whatever) has not been formatted
BadOptions
Bad or conflicting options were passed to an IO call
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoError
impl RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnwindSafe for IoError
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