pub enum OjphError {
Codec {
code: u32,
message: String,
},
Io(Error),
InvalidParam(String),
Unsupported(String),
AllocationFailed,
}Expand description
Top-level error type returned by all fallible codec operations.
Variants§
Codec
A codec-level error with a numeric code (matches the C++ error codes).
Io(Error)
Wraps a std::io::Error.
InvalidParam(String)
An invalid parameter was supplied.
Unsupported(String)
The requested feature is not (yet) supported.
AllocationFailed
A memory allocation failed.
Trait Implementations§
Source§impl Error for OjphError
impl Error for OjphError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OjphError
impl !RefUnwindSafe for OjphError
impl Send for OjphError
impl Sync for OjphError
impl Unpin for OjphError
impl UnsafeUnpin for OjphError
impl !UnwindSafe for OjphError
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