#[repr(i32)]pub enum OpusencError {
BadArg = -11,
InternalError = -13,
Unimplemented = -15,
AllocFail = -17,
CannotOpen = -30,
TooLate = -31,
InvalidPicture = -32,
InvalidIcon = -33,
WriteFail = -34,
CloseFail = -35,
Other(i32),
}
Expand description
Error code as returned from libopusenc.
Variants§
BadArg = -11
InternalError = -13
Unimplemented = -15
AllocFail = -17
CannotOpen = -30
TooLate = -31
InvalidPicture = -32
InvalidIcon = -33
WriteFail = -34
CloseFail = -35
Other(i32)
Trait Implementations§
Source§impl Clone for OpusencError
impl Clone for OpusencError
Source§fn clone(&self) -> OpusencError
fn clone(&self) -> OpusencError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpusencError
impl Debug for OpusencError
Source§impl Display for OpusencError
impl Display for OpusencError
Source§impl Error for OpusencError
impl Error for OpusencError
1.30.0 · 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()
Source§impl From<OpusencError> for Error
impl From<OpusencError> for Error
Source§fn from(e: OpusencError) -> Self
fn from(e: OpusencError) -> Self
Converts to this type from the input type.
Source§impl From<OpusencError> for i32
impl From<OpusencError> for i32
Source§fn from(enum_value: OpusencError) -> Self
fn from(enum_value: OpusencError) -> Self
Converts to this type from the input type.
Source§impl From<i32> for OpusencError
impl From<i32> for OpusencError
Source§impl FromPrimitive for OpusencError
impl FromPrimitive for OpusencError
Source§impl PartialEq for OpusencError
impl PartialEq for OpusencError
impl Copy for OpusencError
impl StructuralPartialEq for OpusencError
Auto Trait Implementations§
impl Freeze for OpusencError
impl RefUnwindSafe for OpusencError
impl Send for OpusencError
impl Sync for OpusencError
impl Unpin for OpusencError
impl UnwindSafe for OpusencError
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