Struct kafka_protocol::messages::ProducerId
source · pub struct ProducerId(pub i64);
Expand description
The first producer ID in this range, inclusive
Tuple Fields§
§0: i64
Methods from Deref<Target = i64>§
pub const MIN: i64 = -9_223_372_036_854_775_808i64
pub const MAX: i64 = 9_223_372_036_854_775_807i64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Borrow<i64> for ProducerId
impl Borrow<i64> for ProducerId
source§impl Clone for ProducerId
impl Clone for ProducerId
source§fn clone(&self) -> ProducerId
fn clone(&self) -> ProducerId
Returns a copy 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 ProducerId
impl Debug for ProducerId
source§impl Default for ProducerId
impl Default for ProducerId
source§fn default() -> ProducerId
fn default() -> ProducerId
Returns the “default value” for a type. Read more
source§impl Deref for ProducerId
impl Deref for ProducerId
source§impl From<ProducerId> for i64
impl From<ProducerId> for i64
source§fn from(other: ProducerId) -> Self
fn from(other: ProducerId) -> Self
Converts to this type from the input type.
source§impl From<i64> for ProducerId
impl From<i64> for ProducerId
source§impl Hash for ProducerId
impl Hash for ProducerId
source§impl Ord for ProducerId
impl Ord for ProducerId
source§fn cmp(&self, other: &ProducerId) -> Ordering
fn cmp(&self, other: &ProducerId) -> 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<ProducerId> for i64
impl PartialEq<ProducerId> for i64
source§fn eq(&self, other: &ProducerId) -> bool
fn eq(&self, other: &ProducerId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<i64> for ProducerId
impl PartialEq<i64> for ProducerId
source§impl PartialEq for ProducerId
impl PartialEq for ProducerId
source§fn eq(&self, other: &ProducerId) -> bool
fn eq(&self, other: &ProducerId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProducerId
impl PartialOrd for ProducerId
source§fn partial_cmp(&self, other: &ProducerId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProducerId) -> Option<Ordering>
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 moreimpl Copy for ProducerId
impl Eq for ProducerId
impl StructuralPartialEq for ProducerId
Auto Trait Implementations§
impl RefUnwindSafe for ProducerId
impl Send for ProducerId
impl Sync for ProducerId
impl Unpin for ProducerId
impl UnwindSafe for ProducerId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.