pub struct Node {
pub id: u32,
pub address: String,
pub healthy: bool,
pub assigned_partitions: Vec<u32>,
}Expand description
Node in the cluster
Fields§
§id: u32Unique node ID
address: StringNetwork address (host:port)
healthy: boolHealth status
assigned_partitions: Vec<u32>Partitions assigned to this node
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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