pub enum FarcWriterError {
IOError(Error),
Sir0WriteFooterError(Sir0WriteFooterError),
FarcError(FarcError),
TooBig(TryFromIntError),
}
Expand description
An error that could happen with any function of a FarcWriter
Variants§
IOError(Error)
An io::Error
occured
An error occured while constructing/writing the sir0 footer
FarcError(FarcError)
A FarcError
occured
TooBig(TryFromIntError)
Too much content are tried to be compressed resulting in an (probably) u32 overflow.
Trait Implementations§
Source§impl Debug for FarcWriterError
impl Debug for FarcWriterError
Source§impl Display for FarcWriterError
impl Display for FarcWriterError
Source§impl Error for FarcWriterError
impl Error for FarcWriterError
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<Error> for FarcWriterError
impl From<Error> for FarcWriterError
Source§impl From<FarcError> for FarcWriterError
impl From<FarcError> for FarcWriterError
Source§fn from(source: Sir0WriteFooterError) -> Self
fn from(source: Sir0WriteFooterError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for FarcWriterError
impl From<TryFromIntError> for FarcWriterError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FarcWriterError
impl !RefUnwindSafe for FarcWriterError
impl Send for FarcWriterError
impl Sync for FarcWriterError
impl Unpin for FarcWriterError
impl !UnwindSafe for FarcWriterError
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