#[non_exhaustive]pub enum FastqError {
Io(Error),
Format(String),
FormatAt {
message: String,
position: FastqPosition,
},
Bgzf(String),
RecordTooLarge {
slab_size: usize,
},
}Expand description
Error type for FASTQ, FASTA, gzip, and BGZF operations.
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.
Io(Error)
I/O error from the underlying reader or file.
Format(String)
Format error without a precise byte position.
FormatAt
Format error with byte, record, and line position.
Bgzf(String)
BGZF-specific error.
RecordTooLarge
A single record did not fit in the configured slab.
Trait Implementations§
Source§impl Debug for FastqError
impl Debug for FastqError
Source§impl Display for FastqError
impl Display for FastqError
Source§impl Error for FastqError
impl Error for FastqError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for FastqError
impl !UnwindSafe for FastqError
impl Freeze for FastqError
impl Send for FastqError
impl Sync for FastqError
impl Unpin for FastqError
impl UnsafeUnpin for FastqError
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