pub enum Timeout {
After(Duration),
Never,
}
Expand description
Specifies a timeout for a Kafka operation.
Variants§
Trait Implementations§
source§impl Ord for Timeout
impl Ord for Timeout
source§impl PartialEq<Timeout> for Timeout
impl PartialEq<Timeout> for Timeout
source§impl PartialOrd<Timeout> for Timeout
impl PartialOrd<Timeout> for Timeout
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign<Timeout> for Timeout
impl SubAssign<Timeout> for Timeout
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Timeout
impl Eq for Timeout
impl StructuralEq for Timeout
impl StructuralPartialEq for Timeout
Auto Trait Implementations§
impl RefUnwindSafe for Timeout
impl Send for Timeout
impl Sync for Timeout
impl Unpin for Timeout
impl UnwindSafe for Timeout
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.