pub enum RcErr {
Regex(Error),
Read(Error),
Utf8(FromUtf8Error),
}
Expand description
Wraps various types of errors that can happen in the internals of a
Chunker. The way Chunkers respond to and report these errors can be
controlled through builder-pattern methods that take the
ErrorResponse
and
Utf8FailureMode
types.
Variants§
Regex(Error)
Error returned during creation of a regex.
Read(Error)
Error returned during reading from a *Chunker
’s source.
Utf8(FromUtf8Error)
Error returned by a upon encountering non-UTF-8 data.
Trait Implementations§
Source§impl Error for RcErr
impl Error for RcErr
Source§fn source<'a>(&'a self) -> Option<&(dyn Error + 'static)>
fn source<'a>(&'a 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<FromUtf8Error> for RcErr
impl From<FromUtf8Error> for RcErr
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RcErr
impl !RefUnwindSafe for RcErr
impl Send for RcErr
impl Sync for RcErr
impl Unpin for RcErr
impl !UnwindSafe for RcErr
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