pub struct TopologyResponse { /* private fields */ }Expand description
Response containing current topology of Zeebe cluster
Implementations§
Source§impl TopologyResponse
Represents the response containing the topology information of the Zeebe cluster.
impl TopologyResponse
Represents the response containing the topology information of the Zeebe cluster.
Sourcepub fn brokers(&self) -> &[BrokerInfo]
pub fn brokers(&self) -> &[BrokerInfo]
Returns a reference to the list of all broker nodes in the cluster.
§Returns
A slice of BrokerInfo references representing all broker nodes in the cluster.
Sourcepub fn cluster_size(&self) -> i32
pub fn cluster_size(&self) -> i32
Returns the total number of nodes in the cluster.
§Returns
An i32 representing the total number of nodes.
Sourcepub fn partitions_count(&self) -> i32
pub fn partitions_count(&self) -> i32
Returns the total number of partitions distributed across the cluster.
§Returns
An i32 representing the total number of partitions.
Sourcepub fn replication_factor(&self) -> i32
pub fn replication_factor(&self) -> i32
Returns the number of copies of each partition that are maintained.
§Returns
An i32 representing the replication factor.
Sourcepub fn gateway_version(&self) -> &str
pub fn gateway_version(&self) -> &str
Returns the version of the gateway software.
§Returns
A string slice (&str) representing the version of the gateway software.
Trait Implementations§
Source§impl Clone for TopologyResponse
impl Clone for TopologyResponse
Source§fn clone(&self) -> TopologyResponse
fn clone(&self) -> TopologyResponse
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 moreAuto Trait Implementations§
impl Freeze for TopologyResponse
impl RefUnwindSafe for TopologyResponse
impl Send for TopologyResponse
impl Sync for TopologyResponse
impl Unpin for TopologyResponse
impl UnwindSafe for TopologyResponse
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request