pub enum ReservationQuery {
AllFree,
HeldBy(NodeId),
State(ResourceId),
AllActive,
}Expand description
Query shapes the ReservationFold answers.
Variants§
AllFree
Every resource currently in ReservationState::Free.
Useful for the scheduler to pick from.
HeldBy(NodeId)
Every resource currently held by node_id in either
Reserved or Active state. Useful for cleanup when a
node leaves the mesh.
State(ResourceId)
State of a single resource. Returns at most one entry.
AllActive
Every resource currently in ReservationState::Active.
Useful for operator dashboards.
Trait Implementations§
Source§impl Clone for ReservationQuery
impl Clone for ReservationQuery
Source§fn clone(&self) -> ReservationQuery
fn clone(&self) -> ReservationQuery
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 ReservationQuery
impl Debug for ReservationQuery
Source§impl PartialEq for ReservationQuery
impl PartialEq for ReservationQuery
Source§fn eq(&self, other: &ReservationQuery) -> bool
fn eq(&self, other: &ReservationQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReservationQuery
impl StructuralPartialEq for ReservationQuery
Auto Trait Implementations§
impl Freeze for ReservationQuery
impl RefUnwindSafe for ReservationQuery
impl Send for ReservationQuery
impl Sync for ReservationQuery
impl Unpin for ReservationQuery
impl UnsafeUnpin for ReservationQuery
impl UnwindSafe for ReservationQuery
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§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.