pub struct GetnetworkhashpsParams {
pub nblocks: Option<i64>,
pub height: Option<i64>,
}Expand description
Returns the estimated network hashes per second based on the last n blocks. Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change. Pass in [height] to estimate the network speed at the time when a certain block was found.
Fields§
§nblocks: Option<i64>The number of previous blocks to calculate estimate from, or -1 for blocks since last difficulty change.
height: Option<i64>To estimate at the time of the given height.
Trait Implementations§
Source§impl Debug for GetnetworkhashpsParams
impl Debug for GetnetworkhashpsParams
Auto Trait Implementations§
impl Freeze for GetnetworkhashpsParams
impl RefUnwindSafe for GetnetworkhashpsParams
impl Send for GetnetworkhashpsParams
impl Sync for GetnetworkhashpsParams
impl Unpin for GetnetworkhashpsParams
impl UnwindSafe for GetnetworkhashpsParams
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