Struct grin_core::global::GLOBAL_CHAIN_TYPE [−][src]
pub struct GLOBAL_CHAIN_TYPE { /* fields omitted */ }
Global chain_type that must be initialized once on node startup. This is accessed via get_chain_type() which allows the global value to be overridden on a per-thread basis (for testing).
Methods from Deref<Target = OneTime<ChainTypes>>
pub fn init(&self, value: T)
[src]
pub fn init(&self, value: T)
[src]Initializes the OneTime, should only be called once after construction. Will panic (via assert) if called more than once.
Trait Implementations
impl Deref for GLOBAL_CHAIN_TYPE
[src]
impl Deref for GLOBAL_CHAIN_TYPE
[src]type Target = OneTime<ChainTypes>
type Target = OneTime<ChainTypes>
The resulting type after dereferencing.
fn deref(&self) -> &OneTime<ChainTypes>
[src]
fn deref(&self) -> &OneTime<ChainTypes>
[src]Dereferences the value.
impl LazyStatic for GLOBAL_CHAIN_TYPE
[src]
impl LazyStatic for GLOBAL_CHAIN_TYPE
[src]fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for GLOBAL_CHAIN_TYPE
impl Send for GLOBAL_CHAIN_TYPE
impl Sync for GLOBAL_CHAIN_TYPE
impl Unpin for GLOBAL_CHAIN_TYPE
impl UnwindSafe for GLOBAL_CHAIN_TYPE
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
T: Any,