pub struct BrokerState {
pub broker_id: i32,
pub broker_epoch: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§broker_id: i32The ID of the broker.
broker_epoch: i64The epoch of the broker. It will be -1 if the epoch check is not supported.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl BrokerState
impl BrokerState
pub fn with_broker_id(self, value: i32) -> Self
pub fn with_broker_epoch(self, value: i64) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for BrokerState
impl Clone for BrokerState
Source§fn clone(&self) -> BrokerState
fn clone(&self) -> BrokerState
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 moreSource§impl Debug for BrokerState
impl Debug for BrokerState
Source§impl Default for BrokerState
impl Default for BrokerState
Source§impl PartialEq for BrokerState
impl PartialEq for BrokerState
Source§fn eq(&self, other: &BrokerState) -> bool
fn eq(&self, other: &BrokerState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BrokerState
Auto Trait Implementations§
impl Freeze for BrokerState
impl RefUnwindSafe for BrokerState
impl Send for BrokerState
impl Sync for BrokerState
impl Unpin for BrokerState
impl UnsafeUnpin for BrokerState
impl UnwindSafe for BrokerState
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