#[repr(i32)]pub enum Error {
Show 68 variants
Generic = -1,
InvalidArgs = -2,
InvalidOperation = -3,
OutOfMemory = -4,
OutOfRange = -5,
AccessDenied = -6,
DoesNotExist = -7,
AlreadyExists = -8,
TooManyOpenFiles = -9,
InvalidFile = -10,
TooBig = -11,
PathTooLong = -12,
NameTooLong = -13,
NotDirectory = -14,
IsDirectory = -15,
DirectoryNotEmpty = -16,
EndOfFile = -17,
NoSpace = -18,
Busy = -19,
IoError = -20,
Interrupt = -21,
Unavailable = -22,
AlreadyInUse = -23,
BadAddress = -24,
BadSeek = -25,
BadPipe = -26,
Deadlock = -27,
TooManyLinks = -28,
NotImplemented = -29,
NoMessage = -30,
BadMessage = -31,
NoDataAvailable = -32,
InvalidData = -33,
Timeout = -34,
NoNetwork = -35,
NotUnique = -36,
NotSocket = -37,
NoAddress = -38,
BadProtocol = -39,
ProtocolUnavailable = -40,
ProtocolNotSupported = -41,
ProtocolFamilyNotSupported = -42,
AddressFamilyNotSupported = -43,
SocketNotSupported = -44,
ConnectionReset = -45,
AlreadyConnected = -46,
NotConnected = -47,
ConnectionRefused = -48,
NoHost = -49,
InProgress = -50,
Cancelled = -51,
MemoryAlreadyMapped = -52,
AtEnd = -53,
FormatNotSupported = -100,
DeviceTypeNotSupported = -101,
ShareModeNotSupported = -102,
NoBackend = -103,
NoDevice = -104,
ApiNotFound = -105,
InvalidDeviceConfig = -106,
DeviceNotInitialized = -200,
DeviceAlreadyInitialized = -201,
DeviceNotStarted = -202,
DeviceNotStopped = -203,
FailedToInitBackend = -300,
FailedToOpenBackendDevice = -301,
FailedToStartBackendDevice = -302,
FailedToStopBackendDevice = -303,
}Variants§
Generic = -1
InvalidArgs = -2
InvalidOperation = -3
OutOfMemory = -4
OutOfRange = -5
AccessDenied = -6
DoesNotExist = -7
AlreadyExists = -8
TooManyOpenFiles = -9
InvalidFile = -10
TooBig = -11
PathTooLong = -12
NameTooLong = -13
NotDirectory = -14
IsDirectory = -15
DirectoryNotEmpty = -16
EndOfFile = -17
NoSpace = -18
Busy = -19
IoError = -20
Interrupt = -21
AlreadyInUse = -23
BadAddress = -24
BadSeek = -25
BadPipe = -26
Deadlock = -27
TooManyLinks = -28
NotImplemented = -29
NoMessage = -30
BadMessage = -31
NoDataAvailable = -32
InvalidData = -33
Timeout = -34
NoNetwork = -35
NotUnique = -36
NotSocket = -37
NoAddress = -38
BadProtocol = -39
ProtocolNotSupported = -41
ProtocolFamilyNotSupported = -42
AddressFamilyNotSupported = -43
SocketNotSupported = -44
ConnectionReset = -45
AlreadyConnected = -46
NotConnected = -47
ConnectionRefused = -48
NoHost = -49
InProgress = -50
Cancelled = -51
MemoryAlreadyMapped = -52
AtEnd = -53
FormatNotSupported = -100
DeviceTypeNotSupported = -101
NoBackend = -103
NoDevice = -104
ApiNotFound = -105
InvalidDeviceConfig = -106
DeviceNotInitialized = -200
DeviceAlreadyInitialized = -201
DeviceNotStarted = -202
DeviceNotStopped = -203
FailedToInitBackend = -300
FailedToOpenBackendDevice = -301
FailedToStartBackendDevice = -302
FailedToStopBackendDevice = -303
Implementations§
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