pub struct ClusterDescription { /* private fields */ }Expand description
Kafka cluster metadata returned by AdminClient::describe_cluster.
Implementations§
Source§impl ClusterDescription
impl ClusterDescription
Sourcepub fn controller_id(&self) -> i32
pub fn controller_id(&self) -> i32
Returns the active controller node ID, or Kafka’s negative sentinel.
Sourcepub fn brokers(&self) -> &[BrokerDescription]
pub fn brokers(&self) -> &[BrokerDescription]
Returns all brokers advertised by the cluster.
Sourcepub fn controller(&self) -> Option<&BrokerDescription>
pub fn controller(&self) -> Option<&BrokerDescription>
Returns the active controller broker when it is present in metadata.
Trait Implementations§
Source§impl Clone for ClusterDescription
impl Clone for ClusterDescription
Source§fn clone(&self) -> ClusterDescription
fn clone(&self) -> ClusterDescription
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 ClusterDescription
impl Debug for ClusterDescription
impl Eq for ClusterDescription
Source§impl PartialEq for ClusterDescription
impl PartialEq for ClusterDescription
impl StructuralPartialEq for ClusterDescription
Auto Trait Implementations§
impl Freeze for ClusterDescription
impl RefUnwindSafe for ClusterDescription
impl Send for ClusterDescription
impl Sync for ClusterDescription
impl Unpin for ClusterDescription
impl UnsafeUnpin for ClusterDescription
impl UnwindSafe for ClusterDescription
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