pub struct Broker {
pub node_id: i32,
pub host: String,
pub port: i32,
pub rack: Option<String>,
}Expand description
One broker in a Metadata response.
Fields§
§node_id: i32Broker id.
host: StringHostname or IP.
port: i32Port.
rack: Option<String>Rack id (v1+).
Implementations§
Trait Implementations§
impl Eq for Broker
Source§impl From<Broker> for DescribeClusterBroker
impl From<Broker> for DescribeClusterBroker
Source§impl From<Broker> for NodeEndpoint
impl From<Broker> for NodeEndpoint
Source§impl From<DescribeClusterBroker> for Broker
impl From<DescribeClusterBroker> for Broker
Source§fn from(n: DescribeClusterBroker) -> Self
fn from(n: DescribeClusterBroker) -> Self
Converts to this type from the input type.
Source§impl From<NodeEndpoint> for Broker
impl From<NodeEndpoint> for Broker
Source§fn from(e: NodeEndpoint) -> Self
fn from(e: NodeEndpoint) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Broker
Auto Trait Implementations§
impl Freeze for Broker
impl RefUnwindSafe for Broker
impl Send for Broker
impl Sync for Broker
impl Unpin for Broker
impl UnsafeUnpin for Broker
impl UnwindSafe for Broker
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