pub struct WorkerSpec {
pub worker_id: String,
pub capacity: u32,
pub cpu_basis_points: u16,
pub memory_basis_points: u16,
pub network_basis_points: u16,
pub tags: BTreeSet<WorkerTag>,
}Expand description
Caller-provided worker admission record.
Fields§
§worker_id: String§capacity: u32§cpu_basis_points: u16§memory_basis_points: u16§network_basis_points: u16Implementations§
Trait Implementations§
Source§impl Clone for WorkerSpec
impl Clone for WorkerSpec
Source§fn clone(&self) -> WorkerSpec
fn clone(&self) -> WorkerSpec
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 WorkerSpec
impl Debug for WorkerSpec
impl Eq for WorkerSpec
Source§impl PartialEq for WorkerSpec
impl PartialEq for WorkerSpec
impl StructuralPartialEq for WorkerSpec
Auto Trait Implementations§
impl Freeze for WorkerSpec
impl RefUnwindSafe for WorkerSpec
impl Send for WorkerSpec
impl Sync for WorkerSpec
impl Unpin for WorkerSpec
impl UnsafeUnpin for WorkerSpec
impl UnwindSafe for WorkerSpec
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