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.
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