logo

Crate async_compression

logo

Crate async_compression

  • Version 0.3.11
  • All Items
  • Modules
  • Enums

Crates

  • actix_codec
  • actix_cors
  • actix_http
  • actix_macros
  • actix_router
  • actix_rt
  • actix_server
  • actix_service
  • actix_utils
  • actix_web
  • actix_web_codegen
  • actix_web_location
  • addr2line
  • adler
  • ahash
  • aho_corasick
  • ansi_term
  • anyhow
  • arc_swap
  • arrayref
  • arrayvec
  • asn1_rs
  • asn1_rs_derive
  • asn1_rs_impl
  • async_compression
  • async_trait
  • backtrace
  • base64
  • bitflags
  • blake3
  • block_buffer
  • bytes
  • bytestring
  • cadence
  • canonical_json
  • cfg_if
  • chrono
  • combine
  • config
  • constant_time_eq
  • convert_case
  • cpufeatures
  • crc32fast
  • crossbeam_channel
  • crossbeam_utils
  • dashmap
  • data_encoding
  • deadpool
  • debugid
  • deduped_dashmap
  • der_parser
  • derive_builder
  • derive_builder_core
  • derive_builder_macro
  • derive_more
  • diff
  • digest
  • displaydoc
  • dlv_list
  • dtoa
  • dummy
  • dyn_clone
  • elasticsearch
  • elasticsearch_demo
  • encoding_rs
  • fake
  • firestorm
  • fix_hidden_lifetime_bug
  • fix_hidden_lifetime_bug_proc_macros
  • 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
  • generic_array
  • gethostname
  • getrandom
  • gimli
  • h2
  • hashbrown
  • hex
  • hostname
  • http
  • http_body
  • httparse
  • httpdate
  • hyper
  • hyper_tls
  • idna
  • indexmap
  • ini
  • instant
  • ipnet
  • itoa
  • json5
  • language_tags
  • lazy_static
  • libc
  • linked_hash_map
  • local_channel
  • local_waker
  • lock_api
  • log
  • maplit
  • match_cfg
  • matchers
  • matches
  • maxminddb
  • memchr
  • merino
  • merino_adm
  • merino_cache
  • merino_integration_tests
  • merino_integration_tests_macro
  • merino_settings
  • merino_suggest_providers
  • merino_suggest_traits
  • merino_web
  • merino_wikipedia
  • mime
  • mime_guess
  • minimal_lexical
  • miniz_oxide
  • mio
  • native_tls
  • nom
  • num_bigint
  • num_cpus
  • num_integer
  • num_threads
  • num_traits
  • object
  • oid_registry
  • once_cell
  • opaque_debug
  • openssl
  • openssl_probe
  • openssl_sys
  • ordered_multimap
  • parameterized
  • parameterized_macro
  • parking_lot
  • parking_lot_core
  • paste
  • pathdiff
  • percent_encoding
  • pest
  • pest_derive
  • pest_generator
  • pest_meta
  • pin_project
  • pin_project_internal
  • pin_project_lite
  • pin_utils
  • ppv_lite86
  • pretty_assertions
  • proc_macro2
  • proc_macro_hack
  • proc_macro_nested
  • quote
  • rand
  • rand_chacha
  • rand_core
  • redis
  • regex
  • regex_automata
  • regex_syntax
  • remote_settings_client
  • reqwest
  • ring
  • ron
  • rustc_demangle
  • rusticata_macros
  • rustversion
  • ryu
  • scopeguard
  • sentry
  • sentry_anyhow
  • sentry_backtrace
  • sentry_contexts
  • sentry_core
  • sentry_panic
  • sentry_types
  • serde
  • serde_derive
  • serde_json
  • serde_path_to_error
  • serde_urlencoded
  • serde_with
  • serde_with_macros
  • sha1
  • sharded_slab
  • signal_hook_registry
  • slab
  • smallvec
  • socket2
  • spin
  • statsd_parser
  • syn
  • synstructure
  • thiserror
  • thiserror_impl
  • thread_local
  • time
  • time_macros
  • tinyvec
  • tinyvec_macros
  • tokio
  • tokio_macros
  • tokio_native_tls
  • tokio_util
  • toml
  • tower_service
  • tracing
  • tracing_actix_web
  • tracing_actix_web_mozlog
  • tracing_attributes
  • tracing_bunyan_formatter
  • tracing_core
  • tracing_futures
  • tracing_log
  • tracing_serde
  • tracing_subscriber
  • try_lock
  • typenum
  • ucd_trie
  • uname
  • unicase
  • unicode_bidi
  • unicode_ident
  • unicode_normalization
  • unicode_xid
  • untrusted
  • url
  • uuid
  • void
  • want
  • woothee
  • x509_parser
  • yaml_rust
logo
Change settings

Crate async_compression

source · [−]
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 (inactive)(deprecated, see async-compression::stream docs for migration)
tokio-02 (inactive)tokio::io::AsyncBufRead, tokio::io::AsyncWrite
tokio-03 (inactive)tokio::io::AsyncBufRead, tokio::io::AsyncWrite
tokiotokio::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

tokio

Implementations for IO traits exported by tokio v1.0.

Enums

Level

Level of compression data should be compressed with.

Results for gzipdecoder

in
async_compression::tokio::bufread::GzipDecoder
A gzip decoder, or decompressor.
async_compression::tokio::write::GzipDecoder
A gzip decoder, or decompressor.
async_compression::tokio::bufread::GzipEncoder
A gzip encoder, or compressor.
async_compression::tokio::write::GzipEncoder
A gzip encoder, or compressor.
flate2::bufread::GzDecoder
A gzip streaming decoder
flate2::read::GzDecoder
A gzip streaming decoder
flate2::write::GzDecoder
A gzip streaming decoder
flate2::bufread::ZlibDecoder
A ZLIB decoder, or decompressor.
flate2::read::ZlibDecoder
A ZLIB decoder, or decompressor.
flate2::write::ZlibDecoder
A ZLIB decoder, or decompressor.
async_compression::tokio::bufread::GzipDecoder::fmt
async_compression::tokio::write::GzipDecoder::fmt
async_compression::tokio::bufread::GzipDecoder::get_mut
Acquires a mutable reference to the underlying reader that …
async_compression::tokio::write::GzipDecoder::get_mut
Acquires a mutable reference to the underlying reader that …
async_compression::tokio::bufread::GzipDecoder::get_ref
Acquires a reference to the underlying reader that this …
async_compression::tokio::write::GzipDecoder::get_ref
Acquires a reference to the underlying reader that this …
async_compression::tokio::bufread::GzipDecoder::into_inner
Consumes this decoder returning the underlying reader.
async_compression::tokio::write::GzipDecoder::into_inner
Consumes this decoder returning the underlying reader.
async_compression::tokio::bufread::GzipDecoder::multiple_members
Configure multi-member/frame decoding, if enabled this …
async_compression::tokio::bufread::GzipDecoder::poll_read
async_compression::tokio::write::GzipDecoder::poll_flush
async_compression::tokio::write::GzipDecoder::poll_write
async_compression::tokio::bufread::GzipDecoder::get_pin_mut
Acquires a pinned mutable reference to the underlying …
async_compression::tokio::write::GzipDecoder::get_pin_mut
Acquires a pinned mutable reference to the underlying …
async_compression::tokio::write::GzipDecoder::poll_shutdown
flate2::bufread::GzDecoder::header
Returns the header associated with this stream, if it was …
flate2::read::GzDecoder::header
Returns the header associated with this stream, if it was …
flate2::bufread::GzDecoder::get_mut
Acquires a mutable reference to the underlying stream.
flate2::read::GzDecoder::get_mut
Acquires a mutable reference to the underlying stream.
flate2::bufread::GzDecoder::get_ref
Acquires a reference to the underlying reader.
flate2::read::GzDecoder::get_ref
Acquires a reference to the underlying reader.
flate2::bufread::GzDecoder::into_inner
Consumes this decoder, returning the underlying reader.
flate2::read::GzDecoder::into_inner
Consumes this decoder, returning the underlying reader.
flate2::bufread::ZlibDecoder::reset
Resets the state of this decoder entirely, swapping out …
flate2::read::ZlibDecoder::reset
Resets the state of this decoder entirely, swapping out …
flate2::bufread::ZlibDecoder::get_mut
Acquires a mutable reference to the underlying stream
flate2::read::ZlibDecoder::get_mut
Acquires a mutable reference to the underlying stream
flate2::bufread::ZlibDecoder::get_ref
Acquires a reference to the underlying stream
flate2::read::ZlibDecoder::get_ref
Acquires a reference to the underlying stream
flate2::bufread::ZlibDecoder::total_in
Returns the number of bytes that the decompressor has …
flate2::read::ZlibDecoder::total_in
Returns the number of bytes that the decompressor has …
flate2::bufread::ZlibDecoder::total_out
Returns the number of bytes that the decompressor has …
flate2::read::ZlibDecoder::total_out
Returns the number of bytes that the decompressor has …
flate2::bufread::ZlibDecoder::into_inner
Consumes this decoder, returning the underlying reader.
flate2::read::ZlibDecoder::into_inner
Consumes this decoder, returning the underlying reader.
async_compression::tokio::bufread::GzipDecoder::new
Creates a new decoder which will read compressed data from …
async_compression::tokio::write::GzipDecoder::new
Creates a new decoder which will take in compressed data …