pub enum Plan {
LocalReuse(Lease),
RemoteReuse(Lease),
Create(CreationPermit),
Wait(u32),
Reject(Reason),
}Expand description
What Pool::acquire committed to. Reuse variants hold a reservation
already taken; Create holds creation budget already claimed. Neither
is advisory.
Variants§
LocalReuse(Lease)
Capacity reserved on a resource this process owns: execute here, no stream, no shared-memory hop.
RemoteReuse(Lease)
Capacity reserved on another process’s resource: bring the lease to the owner over a stream; the owner accepts and completes.
Create(CreationPermit)
Budget claimed: make the resource, register it, finish the permit.
Wait(u32)
Nothing usable now; wait past this key version and ask again.
Reject(Reason)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Plan
impl !UnwindSafe for Plan
impl Freeze for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
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