Struct Consumer Settings 
Source pub struct ConsumerSettings {
    pub max_buffer: u64,
    pub max_bytes: Bytes,
    pub max_time: ClockTime,
}Expand description
User defined consumer settings
Defaults to:
max-buffers<-0(unlimited)max-bytes<-0(unlimited)max-time<-500ms
Use ConsumerSettings::builder() if you need different values.
Fields§
§max_buffer: u64§max_bytes: Bytes§max_time: ClockTimeTrait Implementations§
Source§impl Clone for ConsumerSettings
 
impl Clone for ConsumerSettings
Source§fn clone(&self) -> ConsumerSettings
 
fn clone(&self) -> ConsumerSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumerSettings
 
impl Debug for ConsumerSettings
Source§impl Default for ConsumerSettings
 
impl Default for ConsumerSettings
Source§impl Hash for ConsumerSettings
 
impl Hash for ConsumerSettings
Source§impl Ord for ConsumerSettings
 
impl Ord for ConsumerSettings
Source§fn cmp(&self, other: &ConsumerSettings) -> Ordering
 
fn cmp(&self, other: &ConsumerSettings) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConsumerSettings
 
impl PartialEq for ConsumerSettings
Source§impl PartialOrd for ConsumerSettings
 
impl PartialOrd for ConsumerSettings
impl Copy for ConsumerSettings
impl Eq for ConsumerSettings
impl StructuralPartialEq for ConsumerSettings
Auto Trait Implementations§
impl Freeze for ConsumerSettings
impl RefUnwindSafe for ConsumerSettings
impl Send for ConsumerSettings
impl Sync for ConsumerSettings
impl Unpin for ConsumerSettings
impl UnwindSafe for ConsumerSettings
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more