#[non_exhaustive]pub enum RecordErrorPolicy {
Fail,
Skip,
}Expand description
What the writer does when the source yields an Err record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fail
Stop and return the error. The document in out is truncated.
Skip
Leave the failed record out and keep writing. Each skipped record is
counted in WriteSummary. The written document stays valid: the
<spectrumList count> / <chromatogramList count> attributes give
the number of elements actually written, and their index
attributes are consecutive from 0 in written order.
Trait Implementations§
Source§impl Clone for RecordErrorPolicy
impl Clone for RecordErrorPolicy
impl Copy for RecordErrorPolicy
Source§impl Debug for RecordErrorPolicy
impl Debug for RecordErrorPolicy
Source§impl Default for RecordErrorPolicy
impl Default for RecordErrorPolicy
impl Eq for RecordErrorPolicy
Source§impl PartialEq for RecordErrorPolicy
impl PartialEq for RecordErrorPolicy
impl StructuralPartialEq for RecordErrorPolicy
Auto Trait Implementations§
impl Freeze for RecordErrorPolicy
impl RefUnwindSafe for RecordErrorPolicy
impl Send for RecordErrorPolicy
impl Sync for RecordErrorPolicy
impl Unpin for RecordErrorPolicy
impl UnsafeUnpin for RecordErrorPolicy
impl UnwindSafe for RecordErrorPolicy
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