pub struct BrokerDescription {
pub broker_id: i32,
pub host: String,
pub port: i32,
pub rack: Option<String>,
pub is_fenced: bool,
}Expand description
Broker endpoint metadata returned in a ClusterDescription.
Fields§
§broker_id: i32Broker ID assigned by the Kafka cluster.
host: StringBroker host advertised by Kafka.
port: i32Broker port advertised by Kafka.
rack: Option<String>Optional rack ID.
is_fenced: boolWhether the broker is currently fenced.
Trait Implementations§
Source§impl Clone for BrokerDescription
impl Clone for BrokerDescription
Source§fn clone(&self) -> BrokerDescription
fn clone(&self) -> BrokerDescription
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 BrokerDescription
impl Debug for BrokerDescription
Source§impl PartialEq for BrokerDescription
impl PartialEq for BrokerDescription
impl Eq for BrokerDescription
impl StructuralPartialEq for BrokerDescription
Auto Trait Implementations§
impl Freeze for BrokerDescription
impl RefUnwindSafe for BrokerDescription
impl Send for BrokerDescription
impl Sync for BrokerDescription
impl Unpin for BrokerDescription
impl UnsafeUnpin for BrokerDescription
impl UnwindSafe for BrokerDescription
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<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.