pub struct QueueAdmission {
pub required: Vec<RequiredContract>,
pub unreachable: Vec<UnreachableContract>,
}Expand description
The admission decision inputs for one task queue.
Fields§
§required: Vec<RequiredContract>Contracts a registering worker must satisfy, in stable identity order.
unreachable: Vec<UnreachableContract>Retained contracts nothing can reach, in stable identity order. Reported rather than dropped silently: an operator reading a refusal needs to know which retained versions were NOT held against the worker.
Implementations§
Source§impl QueueAdmission
impl QueueAdmission
Sourcepub fn reason_census(&self) -> ReasonCensus
pub fn reason_census(&self) -> ReasonCensus
How many required contracts carry each reason, for refusal summaries.
Trait Implementations§
Source§impl Clone for QueueAdmission
impl Clone for QueueAdmission
Source§fn clone(&self) -> QueueAdmission
fn clone(&self) -> QueueAdmission
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 QueueAdmission
impl Debug for QueueAdmission
Source§impl Default for QueueAdmission
impl Default for QueueAdmission
Source§fn default() -> QueueAdmission
fn default() -> QueueAdmission
Returns the “default value” for a type. Read more
impl Eq for QueueAdmission
Source§impl PartialEq for QueueAdmission
impl PartialEq for QueueAdmission
impl StructuralPartialEq for QueueAdmission
Auto Trait Implementations§
impl Freeze for QueueAdmission
impl RefUnwindSafe for QueueAdmission
impl Send for QueueAdmission
impl Sync for QueueAdmission
impl Unpin for QueueAdmission
impl UnsafeUnpin for QueueAdmission
impl UnwindSafe for QueueAdmission
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.