#[non_exhaustive]pub struct ConsumerConfig {
pub compression: bool,
}Expand description
Configuration for a Consumer. Construct with ConsumerConfig::new
and chain the with_* setters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compression: boolRead the compressed .json.z tracks instead of the plain .json ones.
Same data for a fraction of the bytes, but requires a producer that
publishes them. Defaults to false.
Implementations§
Source§impl ConsumerConfig
impl ConsumerConfig
Sourcepub fn with_compression(self, compression: bool) -> Self
pub fn with_compression(self, compression: bool) -> Self
Read the compressed .json.z tracks instead of the plain .json ones.
Trait Implementations§
Source§impl Clone for ConsumerConfig
impl Clone for ConsumerConfig
Source§fn clone(&self) -> ConsumerConfig
fn clone(&self) -> ConsumerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsumerConfig
impl Debug for ConsumerConfig
Source§impl Default for ConsumerConfig
impl Default for ConsumerConfig
Source§fn default() -> ConsumerConfig
fn default() -> ConsumerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConsumerConfig
impl RefUnwindSafe for ConsumerConfig
impl Send for ConsumerConfig
impl Sync for ConsumerConfig
impl Unpin for ConsumerConfig
impl UnsafeUnpin for ConsumerConfig
impl UnwindSafe for ConsumerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more