pub struct ProducerId(pub i64);Expand description
A Kafka idempotent or transactional producer id. KIP-98 wire type: int64.
The id identifies a producer session across the broker’s producer-state and
transaction paths and across the log’s aborted-transaction index. -1, the
NO_PRODUCER_ID sentinel, is valid and round-trips as the inner i64. The
id is an identifier, not a quantity, so this crate supplies no arithmetic.
Tuple Fields§
§0: i64Implementations§
Source§impl ProducerId
impl ProducerId
Trait Implementations§
Source§impl Clone for ProducerId
impl Clone for ProducerId
Source§fn clone(&self) -> ProducerId
fn clone(&self) -> ProducerId
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 moreimpl Copy for ProducerId
Source§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<'de> Deserialize<'de> for ProducerId
impl<'de> Deserialize<'de> for ProducerId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProducerId
impl Display for ProducerId
impl Eq for ProducerId
Source§impl From<ProducerId> for i64
impl From<ProducerId> for i64
Source§fn from(value: ProducerId) -> Self
fn from(value: 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 (const: unstable) · 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 ProducerId
impl PartialEq for ProducerId
Source§fn eq(&self, other: &ProducerId) -> bool
fn eq(&self, other: &ProducerId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ProducerId> for i64
impl PartialEq<ProducerId> for i64
Source§fn eq(&self, other: &ProducerId) -> bool
fn eq(&self, other: &ProducerId) -> bool
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 PartialOrd for ProducerId
impl PartialOrd for ProducerId
Source§impl PartialOrd<ProducerId> for i64
impl PartialOrd<ProducerId> for i64
Source§impl PartialOrd<i64> for ProducerId
impl PartialOrd<i64> for ProducerId
Source§impl Serialize for ProducerId
impl Serialize for ProducerId
impl StructuralPartialEq for ProducerId
Auto Trait Implementations§
impl Freeze for ProducerId
impl RefUnwindSafe for ProducerId
impl Send for ProducerId
impl Sync for ProducerId
impl Unpin for ProducerId
impl UnsafeUnpin 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