pub struct Node {
pub id: u64,
pub region: Option<String>,
pub labels: BTreeMap<String, String>,
pub free_vcpus: u32,
pub free_mem_mib: u32,
pub backends: Vec<BackendKind>,
}Expand description
A node’s advertised capacity, attributes, and the backends it offers (from cluster membership). The scheduler receives a snapshot.
Fields§
§id: u64Cluster node id.
region: Option<String>Region, for placement constraints.
labels: BTreeMap<String, String>Advertised labels, for placement constraints.
free_vcpus: u32Free vCPUs.
free_mem_mib: u32Free memory in MiB.
backends: Vec<BackendKind>Backends this node can run a replica on.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.