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§
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: 72 bytes