Enum opendal::raw::DecompressState
source · pub enum DecompressState {
Reading,
Decoding,
Flushing,
Done,
}
Expand description
DecompressState is that decode state during decompress.
Variants§
Reading
Reading means there is no data to be consume, we need to fetch more.
We need to call DecompressReader::fetch()
.
Decoding
Decoding means data is ready.
We need to call DecompressReader::decode()
Flushing
Finishing means all data has been consumed.
We need to call DecompressReader::finish()
to flush them into output.
Done
Done means the whole process of decompress is done.
We should not call any function of DecompressReader
anymore.
Trait Implementations§
source§impl Clone for DecompressState
impl Clone for DecompressState
source§fn clone(&self) -> DecompressState
fn clone(&self) -> DecompressState
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 DecompressState
impl Debug for DecompressState
source§impl PartialEq<DecompressState> for DecompressState
impl PartialEq<DecompressState> for DecompressState
source§fn eq(&self, other: &DecompressState) -> bool
fn eq(&self, other: &DecompressState) -> bool
impl Copy for DecompressState
impl Eq for DecompressState
impl StructuralEq for DecompressState
impl StructuralPartialEq for DecompressState
Auto Trait Implementations§
impl RefUnwindSafe for DecompressState
impl Send for DecompressState
impl Sync for DecompressState
impl Unpin for DecompressState
impl UnwindSafe for DecompressState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.