pub enum Error {
Show 81 variants
Badcommand = 1,
ChannelAlloc = 2,
ChannelStolen = 3,
Dma = 4,
DspConnection = 5,
DspDontprocess = 6,
DspFormat = 7,
DspInuse = 8,
DspNotfound = 9,
DspReserved = 10,
DspSilence = 11,
DspType = 12,
FileBad = 13,
FileCouldnotseek = 14,
FileDiskejected = 15,
FileEof = 16,
FileEndofdata = 17,
FileNotfound = 18,
Format = 19,
HeaderMismatch = 20,
Http = 21,
HttpAccess = 22,
HttpProxyAuth = 23,
HttpServerError = 24,
HttpTimeout = 25,
Initialization = 26,
Initialized = 27,
Internal = 28,
InvalidFloat = 29,
InvalidHandle = 30,
InvalidParam = 31,
InvalidPosition = 32,
InvalidSpeaker = 33,
InvalidSyncpoint = 34,
InvalidThread = 35,
InvalidVector = 36,
Maxaudible = 37,
Memory = 38,
MemoryCantpoint = 39,
Needs3d = 40,
Needshardware = 41,
NetConnect = 42,
NetSocketError = 43,
NetUrl = 44,
NetWouldBlock = 45,
Notready = 46,
OutputAllocated = 47,
OutputCreatebuffer = 48,
OutputDrivercall = 49,
OutputFormat = 50,
OutputInit = 51,
OutputNodrivers = 52,
Plugin = 53,
PluginMissing = 54,
PluginResource = 55,
PluginVersion = 56,
Record = 57,
ReverbChannelgroup = 58,
ReverbInstance = 59,
Subsounds = 60,
SubsoundAllocated = 61,
SubsoundCantmove = 62,
Tagnotfound = 63,
Toomanychannels = 64,
Truncated = 65,
Unimplemented = 66,
Uninitialized = 67,
Unsupported = 68,
Version = 69,
EventAlreadyLoaded = 70,
EventLiveupdateBusy = 71,
EventLiveupdateMismatch = 72,
EventLiveupdateTimeout = 73,
EventNotfound = 74,
StudioUninitialized = 75,
StudioNotLoaded = 76,
InvalidString = 77,
AlreadyLocked = 78,
NotLocked = 79,
RecordDisconnected = 80,
Toomanysamples = 81,
}
Variants§
Badcommand = 1
ChannelAlloc = 2
ChannelStolen = 3
Dma = 4
DspConnection = 5
DspDontprocess = 6
DspFormat = 7
DspInuse = 8
DspNotfound = 9
DspReserved = 10
DspSilence = 11
DspType = 12
FileBad = 13
FileCouldnotseek = 14
FileDiskejected = 15
FileEof = 16
FileEndofdata = 17
FileNotfound = 18
Format = 19
HeaderMismatch = 20
Http = 21
HttpAccess = 22
HttpProxyAuth = 23
HttpServerError = 24
HttpTimeout = 25
Initialization = 26
Initialized = 27
Internal = 28
InvalidFloat = 29
InvalidHandle = 30
InvalidParam = 31
InvalidPosition = 32
InvalidSpeaker = 33
InvalidSyncpoint = 34
InvalidThread = 35
InvalidVector = 36
Maxaudible = 37
Memory = 38
MemoryCantpoint = 39
Needs3d = 40
Needshardware = 41
NetConnect = 42
NetSocketError = 43
NetUrl = 44
NetWouldBlock = 45
Notready = 46
OutputAllocated = 47
OutputCreatebuffer = 48
OutputDrivercall = 49
OutputFormat = 50
OutputInit = 51
OutputNodrivers = 52
Plugin = 53
PluginMissing = 54
PluginResource = 55
PluginVersion = 56
Record = 57
ReverbChannelgroup = 58
ReverbInstance = 59
Subsounds = 60
SubsoundAllocated = 61
SubsoundCantmove = 62
Tagnotfound = 63
Toomanychannels = 64
Truncated = 65
Unimplemented = 66
Uninitialized = 67
Unsupported = 68
Version = 69
EventAlreadyLoaded = 70
EventLiveupdateBusy = 71
EventLiveupdateMismatch = 72
EventLiveupdateTimeout = 73
EventNotfound = 74
StudioUninitialized = 75
StudioNotLoaded = 76
InvalidString = 77
AlreadyLocked = 78
NotLocked = 79
RecordDisconnected = 80
Toomanysamples = 81
Implementations§
Trait Implementations§
Source§impl FromPrimitive for Error
impl FromPrimitive for Error
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreimpl 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