#[repr(C)]pub enum Error {
NotFound = 0,
FileReadOnly = 1,
EndOfFile = 2,
Unimplemented = 3,
InvalidArg = 4,
BadHandle = 5,
DeviceSpecific = 6,
OutOfMemory = 7,
InvalidPath = 8,
}
Expand description
Describes how something has failed
Variants§
NotFound = 0
The given file/directory path was not found
FileReadOnly = 1
Tried to write to a read-only file
EndOfFile = 2
Reached the end of the file
Unimplemented = 3
The API has not been implemented
InvalidArg = 4
An invalid argument was given to the API
BadHandle = 5
A bad handle was given to the API
DeviceSpecific = 6
An device-specific error occurred. Look at the BIOS source for more details.
OutOfMemory = 7
The OS does not have enough memory
InvalidPath = 8
The given path was invalid
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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