pub struct WalletWatchResult {
pub added: u32,
pub watched: u32,
}Expand description
control.wallet.watch — the outcome of enrolling public keys.
§Two numbers, because idempotence is only observable with both
added counts the keys this call newly enrolled; watched is the
size of the whole enrolled set afterwards. A re-enrolment of keys the node already follows is a
SUCCESS that reports added: 0 with watched unchanged — which is how a client tells “already
done” from “nothing happened because the request was ignored”. A single number could not: a
caller seeing only the total cannot distinguish its own duplicate call from another client’s
concurrent enrolment.
Fields§
§added: u32How many of the submitted keys were NOT already enrolled and are now.
watched: u32How many keys the node follows in total after this call.
Trait Implementations§
Source§impl Clone for WalletWatchResult
impl Clone for WalletWatchResult
Source§fn clone(&self) -> WalletWatchResult
fn clone(&self) -> WalletWatchResult
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 moreimpl Copy for WalletWatchResult
Source§impl Debug for WalletWatchResult
impl Debug for WalletWatchResult
Source§impl<'de> Deserialize<'de> for WalletWatchResult
impl<'de> Deserialize<'de> for WalletWatchResult
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 WalletWatchResult
Source§impl PartialEq for WalletWatchResult
impl PartialEq for WalletWatchResult
Source§impl Serialize for WalletWatchResult
impl Serialize for WalletWatchResult
impl StructuralPartialEq for WalletWatchResult
Auto Trait Implementations§
impl Freeze for WalletWatchResult
impl RefUnwindSafe for WalletWatchResult
impl Send for WalletWatchResult
impl Sync for WalletWatchResult
impl Unpin for WalletWatchResult
impl UnsafeUnpin for WalletWatchResult
impl UnwindSafe for WalletWatchResult
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