pub struct WorkerObservation {
pub status: WorkerStatus,
pub cpu_basis_points: u16,
pub memory_basis_points: u16,
pub network_basis_points: u16,
}Expand description
Caller-supplied heartbeat and resource observation.
Fields§
§status: WorkerStatus§cpu_basis_points: u16§memory_basis_points: u16§network_basis_points: u16Trait Implementations§
Source§impl Clone for WorkerObservation
impl Clone for WorkerObservation
Source§fn clone(&self) -> WorkerObservation
fn clone(&self) -> WorkerObservation
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 moreimpl Copy for WorkerObservation
Source§impl Debug for WorkerObservation
impl Debug for WorkerObservation
Source§impl Default for WorkerObservation
impl Default for WorkerObservation
impl Eq for WorkerObservation
Source§impl PartialEq for WorkerObservation
impl PartialEq for WorkerObservation
impl StructuralPartialEq for WorkerObservation
Auto Trait Implementations§
impl Freeze for WorkerObservation
impl RefUnwindSafe for WorkerObservation
impl Send for WorkerObservation
impl Sync for WorkerObservation
impl Unpin for WorkerObservation
impl UnsafeUnpin for WorkerObservation
impl UnwindSafe for WorkerObservation
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