pub enum BGZFError {
HeaderParseError {
position: u64,
},
NotTabix,
NotBGZF,
NotGzip,
TooLargeCompressUnit,
IoError(Error),
Utf8Error(Utf8Error),
PathConvertionError,
CompressionError(CompressError),
DecompressionError(DecompressError),
InvalidCompressionLevel,
Other(&'static str),
}Expand description
A BGZF error.
Variants§
HeaderParseError
Failed to parse header
NotTabix
Not tabix format
NotBGZF
Not BGZF format
NotGzip
Not gzip format
TooLargeCompressUnit
Too larget compress unit. A compress unit must be smaller than 64k bytes.
IoError(Error)
I/O Error
Utf8Error(Utf8Error)
UTF-8 Error
PathConvertionError
Failed to convert native path to UTF-8
CompressionError(CompressError)
Deflate compresssion error
DecompressionError(DecompressError)
Inflate decompression error
InvalidCompressionLevel
Invalid compression level
Other(&'static str)
Other error
Implementations§
Trait Implementations§
Source§impl Error for BGZFError
impl Error for BGZFError
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<CompressError> for BGZFError
impl From<CompressError> for BGZFError
Source§fn from(source: CompressError) -> Self
fn from(source: CompressError) -> Self
Converts to this type from the input type.
Source§impl From<DecompressError> for BGZFError
impl From<DecompressError> for BGZFError
Source§fn from(source: DecompressError) -> Self
fn from(source: DecompressError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BGZFError
impl !RefUnwindSafe for BGZFError
impl Send for BGZFError
impl Sync for BGZFError
impl Unpin for BGZFError
impl !UnwindSafe for BGZFError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more