pub struct WorkerNode { /* private fields */ }Expand description
Coordinator-owned worker snapshot.
Implementations§
Source§impl WorkerNode
impl WorkerNode
pub fn worker_id(&self) -> &str
pub fn generation(&self) -> u64
pub fn status(&self) -> WorkerStatus
pub fn capacity(&self) -> u32
pub fn current_tasks(&self) -> u32
pub fn completed_tasks(&self) -> u64
pub fn last_heartbeat(&self) -> u64
pub fn cpu_basis_points(&self) -> u16
pub fn memory_basis_points(&self) -> u16
pub fn network_basis_points(&self) -> u16
pub fn effective_capacity(&self) -> u32
pub fn available_slots(&self) -> u32
Trait Implementations§
Source§impl Clone for WorkerNode
impl Clone for WorkerNode
Source§fn clone(&self) -> WorkerNode
fn clone(&self) -> WorkerNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerNode
impl Debug for WorkerNode
impl Eq for WorkerNode
Source§impl PartialEq for WorkerNode
impl PartialEq for WorkerNode
impl StructuralPartialEq for WorkerNode
Auto Trait Implementations§
impl Freeze for WorkerNode
impl RefUnwindSafe for WorkerNode
impl Send for WorkerNode
impl Sync for WorkerNode
impl Unpin for WorkerNode
impl UnsafeUnpin for WorkerNode
impl UnwindSafe for WorkerNode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more