#[non_exhaustive]pub enum ErrorCode {
UnsupportedFormat,
DecodeError,
EncodeError,
InvalidArgument,
LimitExceeded,
Io,
Syntax,
Underrun,
}Expand description
Stable error categories. Match on the code rather than the message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedFormat
DecodeError
EncodeError
InvalidArgument
LimitExceeded
Io
Syntax
Malformed text, such as a synthesizer score.
Underrun
A nonblocking source temporarily has no frames; retry later.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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