Crate async_compression

async_compression0.4.12

  • All Items

Sections

  • Feature Organization
    • IO implementation
    • Compression algorithm

Crate Items

  • Modules
  • Enums

Crates

  • addr2line
  • adler2
  • ahash
  • aho_corasick
  • allocator_api2
  • anstream
  • anstyle
  • anstyle_parse
  • anstyle_query
  • anyhow
  • arc_swap
  • arraydeque
  • ascii
  • asn1_rs
  • asn1_rs_derive
  • asn1_rs_impl
  • async_compression
  • async_recursion
  • async_stream
  • async_stream_impl
  • async_trait
  • atomic_waker
  • audit_logger
  • auth_resolver
  • auto_enums
  • axum
  • axum_core
  • backtrace
  • base64
  • base64ct
  • bitflags
  • block_buffer
  • bollard
  • bollard_stubs
  • brane
  • brane_api
  • brane_ast
  • brane_cc
  • brane_cfg
  • brane_cli
  • brane_ctl
  • brane_drv
  • brane_dsl
  • brane_exe
  • brane_job
  • brane_let
  • brane_plr
  • brane_prx
  • brane_reg
  • brane_shr
  • brane_tsk
  • branec
  • branectl
  • branelet
  • bytecount
  • byteorder
  • bytes
  • cfg_if
  • chrono
  • clap
  • clap_builder
  • clap_complete
  • clap_derive
  • clap_lex
  • colorchoice
  • combine
  • console
  • const_format
  • const_format_proc_macros
  • cpufeatures
  • crc32fast
  • crypto_common
  • csv
  • csv_core
  • darling
  • darling_core
  • darling_macro
  • dashmap
  • data_encoding
  • deliberation
  • der_parser
  • deranged
  • derive_utils
  • dialoguer
  • diesel
  • diesel_derives
  • diesel_migrations
  • diesel_table_macro_syntax
  • digest
  • dirs
  • dirs_next
  • dirs_sys
  • dirs_sys_next
  • displaydoc
  • dotenv
  • dotenvy
  • dsl_auto_type
  • eflint_json
  • eflint_to_json
  • either
  • encode_unicode
  • encoding_rs
  • endian_type
  • enum_debug
  • enum_debug_derive
  • env_logger
  • equivalent
  • error_trace
  • expanduser
  • fastrand
  • fd_lock
  • filetime
  • flate2
  • fnv
  • foreign_types
  • foreign_types_shared
  • form_urlencoded
  • fs2
  • fs_extra
  • futures
  • futures_channel
  • futures_core
  • futures_executor
  • futures_io
  • futures_macro
  • futures_sink
  • futures_task
  • futures_util
  • generic_array
  • getrandom
  • gimli
  • graphql_client
  • graphql_client_codegen
  • graphql_introspection_query
  • graphql_parser
  • graphql_query_derive
  • h2
  • hashbrown
  • hashlink
  • headers
  • headers_core
  • hex
  • hex_literal
  • histogram
  • http
  • http_body
  • http_body_util
  • http_serde
  • httparse
  • httpdate
  • human_panic
  • humanlog
  • humantime
  • hyper
  • hyper_timeout
  • hyper_tls
  • hyper_util
  • hyperlocal
  • iana_time_zone
  • icu_collections
  • icu_locid
  • icu_locid_transform
  • icu_locid_transform_data
  • icu_normalizer
  • icu_normalizer_data
  • icu_properties
  • icu_properties_data
  • icu_provider
  • icu_provider_macros
  • ident_case
  • idna
  • idna_adapter
  • indexmap
  • indicatif
  • ipnet
  • is_terminal
  • is_terminal_polyfill
  • itertools
  • itoa
  • jsonwebtoken
  • juniper
  • juniper_codegen
  • juniper_warp
  • lazy_static
  • libc
  • libsqlite3_sys
  • libyml
  • libz_sys
  • linked_hash_map
  • linux_raw_sys
  • litemap
  • lock_api
  • log
  • lz4_flex
  • matchit
  • memchr
  • memoffset
  • migrations_internals
  • migrations_macros
  • mime
  • mime_guess
  • minimal_lexical
  • miniz_oxide
  • mio
  • multer
  • names
  • native_tls
  • never_say_never
  • nibble_vec
  • nix
  • nom
  • nom_locate
  • num_bigint
  • num_conv
  • num_derive
  • num_enum
  • num_enum_derive
  • num_integer
  • num_traits
  • number_prefix
  • object
  • oid_registry
  • once_cell
  • openapiv3
  • openssl
  • openssl_macros
  • openssl_probe
  • openssl_sys
  • option_ext
  • os_info
  • overview
  • parking_lot
  • parking_lot_core
  • path_clean
  • pem
  • percent_encoding
  • pin_project
  • pin_project_internal
  • pin_project_lite
  • pin_utils
  • policy
  • portable_atomic
  • powerfmt
  • ppv_lite86
  • prettytable
  • problem_details
  • proc_macro2
  • proc_macro_crate
  • prost
  • prost_derive
  • pwd
  • quote
  • radix_trie
  • rand
  • rand_chacha
  • rand_core
  • rand_pcg
  • reasonerconn
  • regex
  • regex_automata
  • regex_syntax
  • reqwest
  • ring
  • rustc_demangle
  • rusticata_macros
  • rustix
  • rustls
  • rustls_pemfile
  • rustls_pki_types
  • rustyline
  • rustyline_derive
  • ryu
  • scoped_tls
  • scopeguard
  • sct
  • scylla
  • scylla_cql
  • scylla_macros
  • semver
  • serde
  • serde_derive
  • serde_json
  • serde_json_any_key
  • serde_repr
  • serde_spanned
  • serde_test
  • serde_urlencoded
  • serde_with
  • serde_with_macros
  • serde_yaml
  • serde_yml
  • sha1
  • sha2
  • shell_words
  • shlex
  • signal_hook_registry
  • simple_asn1
  • slab
  • smallvec
  • smartstring
  • snap
  • socket2
  • socksx
  • specifications
  • spin
  • srv
  • stable_deref_trait
  • state_resolver
  • static_assertions
  • strsim
  • strum
  • sync_wrapper
  • tar
  • tempfile
  • term
  • termcolor
  • thiserror
  • thiserror_impl
  • time
  • time_core
  • time_macros
  • tinystr
  • tokio
  • tokio_io_timeout
  • tokio_macros
  • tokio_native_tls
  • tokio_rustls
  • tokio_stream
  • tokio_tar
  • tokio_tungstenite
  • tokio_util
  • toml
  • toml_datetime
  • toml_edit
  • tonic
  • tower
  • tower_layer
  • tower_service
  • tracing
  • tracing_attributes
  • tracing_core
  • transform
  • try_lock
  • tungstenite
  • twox_hash
  • typenum
  • unicase
  • unicode_ident
  • unicode_segmentation
  • unicode_width
  • unicode_xid
  • unreachable
  • untrusted
  • url
  • utf16_iter
  • utf8
  • utf8_iter
  • utf8parse
  • uuid
  • void
  • want
  • warp
  • webpki
  • winnow
  • workflow
  • write16
  • writeable
  • x509_parser
  • xattr
  • yaml_rust
  • yaml_rust2
  • yoke
  • yoke_derive
  • zerocopy
  • zerofrom
  • zerofrom_derive
  • zeroize
  • zerovec
  • zerovec_derive

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
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
deflate64 (inactive)(encoder not implemented), Deflate64Decoder

Modules§

  • tokio
    Implementations for IO traits exported by tokio v1.x.

Enums§

  • Level
    Level of compression data should be compressed with.

Results

in 
Settings
Help
    struct
    async_compression::tokio::bufread::GzipDecoder
    A gzip decoder, or decompressor
    struct
    async_compression::tokio::write::GzipDecoder
    A gzip decoder, or decompressor
    struct
    async_compression::tokio::bufread::GzipEncoder
    A gzip encoder, or compressor.
    struct
    async_compression::tokio::write::GzipEncoder
    A gzip encoder, or compressor.
    struct
    flate2::bufread::GzDecoder
    A decoder for a single member of a gzip file.
    struct
    flate2::read::GzDecoder
    A decoder for a single member of a gzip file.
    struct
    flate2::write::GzDecoder
    A decoder for a single member of a gzip file.
    method
    async_compression::tokio::bufread::GzipDecoder::into_inner
    GzipDecoder<R> -> R
    Consumes this decoder returning the underlying reader.
    method
    async_compression::tokio::write::GzipDecoder::into_inner
    GzipDecoder<W> -> W
    Consumes this decoder returning the underlying reader.
    method
    async_compression::tokio::bufread::GzipDecoder::get_ref
    &GzipDecoder<R> -> &R
    Acquires a reference to the underlying reader that this …
    method
    async_compression::tokio::write::GzipDecoder::get_ref
    &GzipDecoder<W> -> &W
    Acquires a reference to the underlying reader that this …
    method
    async_compression::tokio::bufread::GzipDecoder::multiple_members
    &mut GzipDecoder<R>, bool -> ()
    Configure multi-member/frame decoding, if enabled this …
    method
    async_compression::tokio::bufread::GzipDecoder::fmt
    &GzipDecoder<R>, &mut Formatter -> Result
    method
    async_compression::tokio::write::GzipDecoder::fmt
    &GzipDecoder<W>, &mut Formatter -> Result
    method
    async_compression::tokio::bufread::GzipDecoder::get_mut
    &mut GzipDecoder<R> -> &mut R
    Acquires a mutable reference to the underlying reader that …
    method
    async_compression::tokio::write::GzipDecoder::get_mut
    &mut GzipDecoder<W> -> &mut W
    Acquires a mutable reference to the underlying reader that …
    method
    async_compression::tokio::bufread::GzipDecoder::new
    R -> GzipDecoder<R>
    Creates a new decoder which will read compressed data from …
    method
    async_compression::tokio::write::GzipDecoder::new
    W -> GzipDecoder<W>
    Creates a new decoder which will take in compressed data …