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 gzipencoder

in
async_compression::tokio::bufread::GzipEncoder
A gzip encoder, or compressor.
async_compression::tokio::write::GzipEncoder
A gzip encoder, or compressor.
async_compression::tokio::bufread::GzipDecoder
A gzip decoder, or decompressor.
async_compression::tokio::write::GzipDecoder
A gzip decoder, or decompressor.
flate2::bufread::GzEncoder
A gzip streaming encoder
flate2::read::GzEncoder
A gzip streaming encoder
flate2::write::GzEncoder
A gzip streaming encoder
flate2::bufread::GzDecoder
A gzip streaming decoder
flate2::read::GzDecoder
A gzip streaming decoder
flate2::write::GzDecoder
A gzip streaming decoder
flate2::bufread::ZlibEncoder
A ZLIB encoder, or compressor.
flate2::read::ZlibEncoder
A ZLIB encoder, or compressor.
flate2::write::ZlibEncoder
A ZLIB encoder, or compressor.
async_compression::tokio::bufread::GzipEncoder::fmt
async_compression::tokio::write::GzipEncoder::fmt
async_compression::tokio::bufread::GzipEncoder::get_mut
Acquires a mutable reference to the underlying reader that …
async_compression::tokio::write::GzipEncoder::get_mut
Acquires a mutable reference to the underlying writer that …
async_compression::tokio::bufread::GzipEncoder::get_ref
Acquires a reference to the underlying reader that this …
async_compression::tokio::write::GzipEncoder::get_ref
Acquires a reference to the underlying writer that this …
async_compression::tokio::bufread::GzipEncoder::into_inner
Consumes this encoder returning the underlying reader.
async_compression::tokio::write::GzipEncoder::into_inner
Consumes this encoder returning the underlying writer.
async_compression::tokio::bufread::GzipEncoder::poll_read
async_compression::tokio::write::GzipEncoder::poll_flush
async_compression::tokio::write::GzipEncoder::poll_write
async_compression::tokio::bufread::GzipEncoder::get_pin_mut
Acquires a pinned mutable reference to the underlying …
async_compression::tokio::write::GzipEncoder::get_pin_mut
Acquires a pinned mutable reference to the underlying …
async_compression::tokio::write::GzipEncoder::poll_shutdown
flate2::bufread::GzEncoder::get_mut
Acquires a mutable reference to the underlying reader.
flate2::read::GzEncoder::get_mut
Acquires a mutable reference to the underlying reader.
flate2::bufread::GzEncoder::get_ref
Acquires a reference to the underlying reader.
flate2::read::GzEncoder::get_ref
Acquires a reference to the underlying reader.
flate2::bufread::GzEncoder::into_inner
Returns the underlying stream, consuming this encoder
flate2::read::GzEncoder::into_inner
Returns the underlying stream, consuming this encoder
flate2::bufread::ZlibEncoder::reset
Resets the state of this encoder entirely, swapping out …
flate2::read::ZlibEncoder::reset
Resets the state of this encoder entirely, swapping out …
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::bufread::ZlibEncoder::get_mut
Acquires a mutable reference to the underlying stream
flate2::read::GzDecoder::get_mut
Acquires a mutable reference to the underlying stream.
flate2::read::ZlibEncoder::get_mut
Acquires a mutable reference to the underlying stream
flate2::bufread::GzDecoder::get_ref
Acquires a reference to the underlying reader.
flate2::bufread::ZlibEncoder::get_ref
Acquires a reference to the underlying reader
flate2::read::GzDecoder::get_ref
Acquires a reference to the underlying reader.
flate2::read::ZlibEncoder::get_ref
Acquires a reference to the underlying stream
flate2::bufread::ZlibEncoder::total_in
Returns the number of bytes that have been read into this …
flate2::read::ZlibEncoder::total_in
Returns the number of bytes that have been read into this …
flate2::bufread::ZlibEncoder::total_out
Returns the number of bytes that the compressor has …
flate2::read::ZlibEncoder::total_out
Returns the number of bytes that the compressor has …
flate2::bufread::GzDecoder::into_inner
Consumes this decoder, returning the underlying reader.
flate2::bufread::ZlibEncoder::into_inner
Consumes this encoder, returning the underlying reader.
flate2::read::GzDecoder::into_inner
Consumes this decoder, returning the underlying reader.
flate2::read::ZlibEncoder::into_inner
Consumes this encoder, returning the underlying reader.
async_compression::tokio::bufread::GzipEncoder::new
Creates a new encoder which will read uncompressed data …
async_compression::tokio::write::GzipEncoder::new
Creates a new encoder which will take in uncompressed data …
async_compression::tokio::bufread::GzipEncoder::with_quality
Creates a new encoder which will read uncompressed data …
async_compression::tokio::write::GzipEncoder::with_quality
Creates a new encoder which will take in uncompressed data …
flate2::GzBuilder::buf_read
Consume this builder, creating a reader encoder in the …