Struct grin_core::global::GLOBAL_ACCEPT_FEE_BASE
source · pub struct GLOBAL_ACCEPT_FEE_BASE { /* private fields */ }
Expand description
Global acccept fee base that must be initialized once on node startup. This is accessed via get_acccept_fee_base() which allows the global value to be overridden on a per-thread basis (for testing).
Methods from Deref<Target = OneTime<u64>>§
sourcepub fn init(&self, value: T)
pub fn init(&self, value: T)
Initializes the OneTime, should only be called once after construction. Will panic (via assert) if called more than once.
sourcepub fn set(&self, value: T, is_override: bool)
pub fn set(&self, value: T, is_override: bool)
Allows the one time to be set again with an override.
Trait Implementations§
source§impl Deref for GLOBAL_ACCEPT_FEE_BASE
impl Deref for GLOBAL_ACCEPT_FEE_BASE
impl LazyStatic for GLOBAL_ACCEPT_FEE_BASE
Auto Trait Implementations§
impl Freeze for GLOBAL_ACCEPT_FEE_BASE
impl RefUnwindSafe for GLOBAL_ACCEPT_FEE_BASE
impl Send for GLOBAL_ACCEPT_FEE_BASE
impl Sync for GLOBAL_ACCEPT_FEE_BASE
impl Unpin for GLOBAL_ACCEPT_FEE_BASE
impl UnwindSafe for GLOBAL_ACCEPT_FEE_BASE
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