pub struct WalletPeakResult {
pub peak_height: Option<u32>,
pub synced: bool,
}Expand description
control.wallet.peak — the node’s current chain peak height.
peak_height: null is an honest “this node tracks no height yet”, not a zero. A caller bounding
a claimed confirmation MUST treat it as unknown rather than as height 0, which every block is
trivially above.
Fields§
§peak_height: Option<u32>The peak block height the node’s chain view has reached, or null when it has none.
synced: boolWhether the node’s own chain replica is caught up to that peak.
Trait Implementations§
Source§impl Clone for WalletPeakResult
impl Clone for WalletPeakResult
Source§fn clone(&self) -> WalletPeakResult
fn clone(&self) -> WalletPeakResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletPeakResult
impl Debug for WalletPeakResult
Source§impl<'de> Deserialize<'de> for WalletPeakResult
impl<'de> Deserialize<'de> for WalletPeakResult
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
impl Eq for WalletPeakResult
Source§impl PartialEq for WalletPeakResult
impl PartialEq for WalletPeakResult
Source§impl Serialize for WalletPeakResult
impl Serialize for WalletPeakResult
impl StructuralPartialEq for WalletPeakResult
Auto Trait Implementations§
impl Freeze for WalletPeakResult
impl RefUnwindSafe for WalletPeakResult
impl Send for WalletPeakResult
impl Sync for WalletPeakResult
impl Unpin for WalletPeakResult
impl UnsafeUnpin for WalletPeakResult
impl UnwindSafe for WalletPeakResult
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