pub struct DifficultyManager {
pub block_difficulty: [u8; 32],
pub transaction_difficulty: [u8; 32],
pub last_timestamp: u64,
}Fields§
§block_difficulty: [u8; 32]§transaction_difficulty: [u8; 32]§last_timestamp: u64Implementations§
Source§impl DifficultyManager
Manages network difficulty and TX POW difficulty
impl DifficultyManager
Manages network difficulty and TX POW difficulty
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for DifficultyManager
impl<'__de, __Context> BorrowDecode<'__de, __Context> for DifficultyManager
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for DifficultyManager
impl Clone for DifficultyManager
Source§fn clone(&self) -> DifficultyManager
fn clone(&self) -> DifficultyManager
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DifficultyManager
impl Debug for DifficultyManager
Source§impl<__Context> Decode<__Context> for DifficultyManager
impl<__Context> Decode<__Context> for DifficultyManager
Source§impl Encode for DifficultyManager
impl Encode for DifficultyManager
impl Copy for DifficultyManager
Auto Trait Implementations§
impl Freeze for DifficultyManager
impl RefUnwindSafe for DifficultyManager
impl Send for DifficultyManager
impl Sync for DifficultyManager
impl Unpin for DifficultyManager
impl UnwindSafe for DifficultyManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)