pub struct UploadTarget {
pub timeframe: u64,
pub target: u64,
pub target_reached: bool,
pub serve_historical_blocks: bool,
pub bytes_left_in_cycle: u64,
pub time_left_in_cycle: u64,
}Expand description
The upload_target field from the result of JSON-RPC method getnettotals.
Fields§
§timeframe: u64Length of the measuring timeframe in seconds.
target: u64Target in bytes.
target_reached: boolTrue if target is reached.
serve_historical_blocks: boolTrue if serving historical blocks.
bytes_left_in_cycle: u64Bytes left in current time cycle.
time_left_in_cycle: u64Seconds left in current time cycle.
Trait Implementations§
Source§impl Clone for UploadTarget
impl Clone for UploadTarget
Source§fn clone(&self) -> UploadTarget
fn clone(&self) -> UploadTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadTarget
impl Debug for UploadTarget
Source§impl<'de> Deserialize<'de> for UploadTarget
impl<'de> Deserialize<'de> for UploadTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UploadTarget
impl PartialEq for UploadTarget
Source§impl Serialize for UploadTarget
impl Serialize for UploadTarget
impl StructuralPartialEq for UploadTarget
Auto Trait Implementations§
impl Freeze for UploadTarget
impl RefUnwindSafe for UploadTarget
impl Send for UploadTarget
impl Sync for UploadTarget
impl Unpin for UploadTarget
impl UnwindSafe for UploadTarget
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