pub struct RacyLock<T: 'static> {
inner: LazyLock<T, fn() -> T>,
}Fields§
§inner: LazyLock<T, fn() -> T>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RacyLock<T>
impl<T> RefUnwindSafe for RacyLock<T>where
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for RacyLock<T>where
T: Send,
impl<T> Sync for RacyLock<T>
impl<T> Unpin for RacyLock<T>where
T: Unpin,
impl<T> UnwindSafe for RacyLock<T>where
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