pub struct NodeInfo {
pub id: String,
pub host: String,
pub port: u16,
pub role: NodeRole,
pub slots: Vec<(u16, u16)>,
}
Expand description
Information about a cluster node
Fields§
§id: String
Node ID in the cluster
host: String
Hostname or IP address
port: u16
Port number
role: NodeRole
Role of the node (Master/Replica)
slots: Vec<(u16, u16)>
Slot ranges assigned to this node (start, end)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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