devela::_dep::_std::sync::poison

Constant ONCE_INIT

Source
pub const ONCE_INIT: Once;
๐Ÿ‘ŽDeprecated since 1.38.0: the Once::new() function is now preferred
๐Ÿ”ฌThis is a nightly-only experimental API. (sync_poison_mod)
Available on crate feature std only.
Expand description

Initialization value for static Once values.

ยงExamples

use std::sync::{Once, ONCE_INIT};

static START: Once = ONCE_INIT;