pub struct Slot<T> { /* private fields */ }Expand description
Losers of the build race wait, and a failure leaves the slot empty for the next caller to retry.
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Slot<T>
impl<T> RefUnwindSafe for Slot<T>where
OnceLock<T>: RefUnwindSafe,
impl<T> Send for Slot<T>
impl<T> Sync for Slot<T>
impl<T> Unpin for Slot<T>
impl<T> UnsafeUnpin for Slot<T>where
OnceLock<T>: UnsafeUnpin,
impl<T> UnwindSafe for Slot<T>where
OnceLock<T>: UnwindSafe,
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