☰
logo

Crate async_compression

Version 0.3.6

See all async_compression's items

  • Modules
  • Enums

Crates

  • adler
  • aho_corasick
  • async_compression
  • async_trait
  • base64
  • bitflags
  • bytes
  • cfg_if
  • chrono
  • crc32fast
  • dirs
  • dirs_sys
  • dtoa
  • encoding_rs
  • eui48
  • fallible_iterator
  • flate2
  • fnv
  • foreign_types
  • foreign_types_shared
  • form_urlencoded
  • futures
  • futures_channel
  • futures_core
  • futures_executor
  • futures_io
  • futures_macro
  • futures_sink
  • futures_task
  • futures_util
  • h2
  • hashbrown
  • http
  • http_body
  • httparse
  • httpdate
  • hyper
  • hyper_tls
  • idna
  • indexmap
  • iovec
  • ipnet
  • itoa
  • lazy_static
  • libc
  • linked_hash_map
  • log
  • matches
  • memchr
  • mime
  • mime_guess
  • miniz_oxide
  • mio
  • native_tls
  • net2
  • num_integer
  • num_traits
  • once_cell
  • openssl
  • openssl_probe
  • openssl_sys
  • openstack
  • osauth
  • osproto
  • percent_encoding
  • pin_project
  • pin_project_internal
  • pin_project_lite
  • pin_utils
  • proc_macro2
  • proc_macro_hack
  • proc_macro_nested
  • quote
  • regex
  • regex_syntax
  • reqwest
  • rustc_serialize
  • ryu
  • serde
  • serde_derive
  • serde_json
  • serde_urlencoded
  • serde_yaml
  • slab
  • socket2
  • syn
  • thread_local
  • time
  • tinyvec
  • tokio
  • tokio_macros
  • tokio_tls
  • tokio_util
  • tower_service
  • tracing
  • tracing_core
  • tracing_futures
  • try_lock
  • unicase
  • unicode_bidi
  • unicode_normalization
  • unicode_xid
  • url
  • waiter
  • want
  • yaml_rust
? Change settings

[−][src]Crate async_compression

[−] Expand description

Adaptors between compression crates and Rust's modern asynchronous IO types.

Feature Organization

This crate is divided up along two axes, which can each be individually selected via Cargo features.

All features are disabled by default, you should enable just the ones you need from the lists below.

If you want to pull in everything there are three group features defined:

FeatureDoes
allActivates all implementations and algorithms.
all-implementationsActivates all implementations, needs to be paired with a selection of algorithms
all-algorithmsActivates all algorithms, needs to be paired with a selection of implementations

IO implementation

The first division is which underlying asynchronous IO trait will be wrapped, these are available as separate features that have corresponding top-level modules:

FeatureType
futures-io (inactive)futures::io::AsyncBufRead, futures::io::AsyncWrite
[stream]futures::stream::Stream<Item = [std::io::Result]<[bytes::Bytes]>>
tokio-02 (inactive)tokio::io::AsyncBufRead, tokio::io::AsyncWrite
tokio-03 (inactive)tokio::io::AsyncBufRead, tokio::io::AsyncWrite

Compression algorithm

The second division is which compression schemes to support, there are currently a few available choices, these determine which types will be available inside the above modules:

FeatureTypes
brotli (inactive)BrotliEncoder, BrotliDecoder
bzip2 (inactive)BzEncoder, BzDecoder
deflate (inactive)DeflateEncoder, DeflateDecoder
gzipGzipEncoder, GzipDecoder
lzma (inactive)LzmaEncoder, LzmaDecoder
xz (inactive)XzEncoder, XzDecoder
zlib (inactive)ZlibEncoder, ZlibDecoder
zstd (inactive)ZstdEncoder, ZstdDecoder

Modules

stream

Types which operate over Stream<Item = io::Result<Bytes>> streams, both encoders and decoders for various formats.

Enums

Level

Level of compression data should be compressed with.

Results for GzipDecoder

In Names
(5)
In Parameters
(0)
In Return Types
(0)
async_compression::stream::GzipDecoderA gzip decoder, or decompressor. 
async_compression::stream::GzipEncoderA gzip encoder, or compressor. 
flate2::bufread::GzDecoderA gzip streaming decoder 
flate2::read::GzDecoderA gzip streaming decoder 
flate2::write::GzDecoderA gzip streaming decoder 
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
↑
Move up in search results
↓
Move down in search results
↹
Switch tab
⏎
Go to active search result
+
Expand all sections
-
Collapse all sections

Search Tricks

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given type.

Accepted types are: fn, mod, struct, enum, trait, type, macro, and const.

Search functions by type signature (e.g., vec -> usize or * -> vec)

Search multiple things at once by splitting your query with comma (e.g., str,u8 or String,struct:Vec,test)

You can look for items with an exact name by putting double quotes around your request: "string"

Look for items inside another one by searching for a path: vec::Vec