[−][src]Enum binjs::io::Compression
The compression mechanisms supported by this encoder. They are designed to match HTTP's Accept-Encoding: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
Variants
no compression (identity;
)
gzip compression (gzip;
)
zlib compression (deflate;
)
brotly compression (br;
)
Lwz compression (compress;
)
Methods
impl Compression
[src]
pub fn name(&self) -> &str
[src]
pub fn code(&self) -> &str
[src]
pub fn parse(name: Option<&str>) -> Option<Compression>
[src]
pub fn values() -> Box<[Compression]>
[src]
pub fn is_compressed(&self) -> bool
[src]
pub fn compress<W>(
&self,
data: &[u8],
out: &mut W
) -> Result<CompressionResult, Error> where
W: Write,
[src]
&self,
data: &[u8],
out: &mut W
) -> Result<CompressionResult, Error> where
W: Write,
pub fn decompress<R, T>(
inp: &mut R,
deserializer: &T
) -> Result<<T as Deserializer>::Target, Error> where
R: Read,
T: Deserializer,
[src]
inp: &mut R,
deserializer: &T
) -> Result<<T as Deserializer>::Target, Error> where
R: Read,
T: Deserializer,
Trait Implementations
impl Clone for Compression
[src]
fn clone(&self) -> Compression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Compression
[src]
impl Eq for Compression
[src]
impl Hash for Compression
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Compression> for Compression
[src]
fn eq(&self, other: &Compression) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Compression
[src]
impl StructuralPartialEq for Compression
[src]
Auto Trait Implementations
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,