Struct miri::concurrency::init_once::InitOnce
source · pub(super) struct InitOnce<'mir, 'tcx> {
status: InitOnceStatus,
waiters: VecDeque<InitOnceWaiter<'mir, 'tcx>>,
data_race: VClock,
}
Expand description
The one time initialization state.
Fields§
§status: InitOnceStatus
§waiters: VecDeque<InitOnceWaiter<'mir, 'tcx>>
§data_race: VClock
Trait Implementations§
Auto Trait Implementations§
impl<'mir, 'tcx> !RefUnwindSafe for InitOnce<'mir, 'tcx>
impl<'mir, 'tcx> !Send for InitOnce<'mir, 'tcx>
impl<'mir, 'tcx> !Sync for InitOnce<'mir, 'tcx>
impl<'mir, 'tcx> Unpin for InitOnce<'mir, 'tcx>
impl<'mir, 'tcx> !UnwindSafe for InitOnce<'mir, 'tcx>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes