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)>
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()