#[repr(usize)]pub enum Error {
Show 37 variants
Success = 0,
LoadError = 1,
InvalidParameter = 2,
Unsupported = 3,
BadBufferSize = 4,
BufferTooSmall = 5,
NotReady = 6,
DeviceError = 7,
WriteProtected = 8,
OutOfResources = 9,
VolumeCorrupted = 10,
VolumeFull = 11,
NoMedia = 12,
MediaChanged = 13,
NotFound = 14,
AccessDenied = 15,
NoResponse = 16,
NoMapping = 17,
Timeout = 18,
NotStarted = 19,
AlreadyStarted = 20,
Aborted = 21,
IcmpError = 22,
TftpError = 23,
ProtocolError = 24,
IncompatibleVersion = 25,
SecurityViolation = 26,
CrcError = 27,
EndOfMedia = 28,
Error29 = 29,
Error30 = 30,
EndOfFile = 31,
InvalidLanguage = 32,
CompromisedData = 33,
Error34 = 34,
HttpError = 35,
Unknown = 36,
}
Variants§
Success = 0
LoadError = 1
InvalidParameter = 2
Unsupported = 3
BadBufferSize = 4
BufferTooSmall = 5
NotReady = 6
DeviceError = 7
WriteProtected = 8
OutOfResources = 9
VolumeCorrupted = 10
VolumeFull = 11
NoMedia = 12
MediaChanged = 13
NotFound = 14
AccessDenied = 15
NoResponse = 16
NoMapping = 17
Timeout = 18
NotStarted = 19
AlreadyStarted = 20
Aborted = 21
IcmpError = 22
TftpError = 23
ProtocolError = 24
IncompatibleVersion = 25
SecurityViolation = 26
CrcError = 27
EndOfMedia = 28
Error29 = 29
Error30 = 30
EndOfFile = 31
InvalidLanguage = 32
CompromisedData = 33
Error34 = 34
HttpError = 35
Unknown = 36
Trait Implementations§
source§impl<T> FromResidual<Error> for Result<T>
impl<T> FromResidual<Error> for Result<T>
source§fn from_residual(err: Error) -> Self
fn from_residual(err: Error) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2
)Constructs the type from a compatible
Residual
type. Read moresource§impl PartialEq for Error
impl PartialEq for Error
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