pub struct ProducerSettings {
pub sync: bool,
}
Expand description
User defined producer settings
Defaults to:
sync
<-true
(sync on the clock)
Use ConsumerSettings::builder()
if you need different values.
Fields§
§sync: bool
Trait Implementations§
Source§impl Clone for ProducerSettings
impl Clone for ProducerSettings
Source§fn clone(&self) -> ProducerSettings
fn clone(&self) -> ProducerSettings
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 ProducerSettings
impl Debug for ProducerSettings
Source§impl Default for ProducerSettings
impl Default for ProducerSettings
Source§impl Hash for ProducerSettings
impl Hash for ProducerSettings
Source§impl Ord for ProducerSettings
impl Ord for ProducerSettings
Source§fn cmp(&self, other: &ProducerSettings) -> Ordering
fn cmp(&self, other: &ProducerSettings) -> 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 ProducerSettings
impl PartialEq for ProducerSettings
Source§impl PartialOrd for ProducerSettings
impl PartialOrd for ProducerSettings
impl Copy for ProducerSettings
impl Eq for ProducerSettings
impl StructuralPartialEq for ProducerSettings
Auto Trait Implementations§
impl Freeze for ProducerSettings
impl RefUnwindSafe for ProducerSettings
impl Send for ProducerSettings
impl Sync for ProducerSettings
impl Unpin for ProducerSettings
impl UnwindSafe for ProducerSettings
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