pub enum ErrorResponse {
Halt,
Continue,
Ignore,
}
Expand description
Type for specifying a Chunker’s behavior upon encountering an error.
Variants§
Halt
Return Some(Err(error))
once then None thereafter. This is
the default behavior.
Continue
Return Some(Err(error))
but attempt to recover and continue.
This may result in an endless stream of errors.
Ignore
Attempt to recover and continue until it’s possible to return
another Some(Ok())
. This may result in a deadlock.
Trait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§fn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
Returns a copy 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 ErrorResponse
impl Debug for ErrorResponse
impl Copy for ErrorResponse
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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