pub enum Decision {
Reuse(ResourceId),
Create,
Wait,
Reject(Reason),
}Expand description
What the policy wants done next.
Variants§
Reuse(ResourceId)
Reserve capacity on this candidate.
Create
Claim creation budget and make a new resource.
Wait
Nothing usable now; the caller waits for the key to change.
Reject(Reason)
Nothing usable and waiting is not the answer.
Trait Implementations§
impl Copy for Decision
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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