Enum unrar_async::error::Error
source · pub enum Error {
Rar(RarError),
NulString(NulError),
FFIStringConversionBytes(FromBytesWithNulError),
FFIStringConversionVec(FromVecWithNulError),
Join,
NulHandle,
BufferOverflow(usize, usize),
TryFromSlice(TryFromSliceError),
UTF8(FromUtf8Error),
}
Expand description
The main error type for unrar-async
Variants§
Rar(RarError)
NulString(NulError)
FFIStringConversionBytes(FromBytesWithNulError)
FFIStringConversionVec(FromVecWithNulError)
Join
NulHandle
BufferOverflow(usize, usize)
TryFromSlice(TryFromSliceError)
UTF8(FromUtf8Error)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FromBytesWithNulError> for Error
impl From<FromBytesWithNulError> for Error
source§fn from(source: FromBytesWithNulError) -> Self
fn from(source: FromBytesWithNulError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<FromVecWithNulError> for Error
impl From<FromVecWithNulError> for Error
source§fn from(source: FromVecWithNulError) -> Self
fn from(source: FromVecWithNulError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more