pub enum PopulationOutcome<'cache> {
Acquired(Population<'cache>),
Busy,
Suppressed(CachedFailure),
Present(CacheEntry),
}Expand description
Outcome of trying to acquire population ownership.
Variants§
Acquired(Population<'cache>)
The caller owns population for this build identifier.
Busy
Another process currently owns the same bounded lock slot.
Lock-slot collisions may delay an unrelated build ID.
Suppressed(CachedFailure)
A cached failure suppresses population until its expiration.
Present(CacheEntry)
Population completed before the lock was needed or acquired.
Trait Implementations§
Auto Trait Implementations§
impl<'cache> Freeze for PopulationOutcome<'cache>
impl<'cache> RefUnwindSafe for PopulationOutcome<'cache>
impl<'cache> Send for PopulationOutcome<'cache>
impl<'cache> Sync for PopulationOutcome<'cache>
impl<'cache> Unpin for PopulationOutcome<'cache>
impl<'cache> UnsafeUnpin for PopulationOutcome<'cache>
impl<'cache> UnwindSafe for PopulationOutcome<'cache>
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