pub enum WalletReadSource {
Db,
Fallback,
}Expand description
Which tier answered a wallet read (dig_ecosystem#2233).
A node serves a wallet read either from its own chain replica or from a third-party HTTP oracle, and the two are not interchangeable to a caller: the oracle path is a network round trip that discloses the queried address off-node, which a user on a metered or private connection has a legitimate interest in knowing about. Reporting the tier is also what makes “the node answered from its own chain state” a falsifiable claim — a sync-progress flag is not, since a flag can flip while the oracle keeps answering.
Variants§
Db
The node’s own local chain replica. No third party was consulted.
Fallback
A third-party coinset HTTP oracle. The queried address was disclosed off-node.
Trait Implementations§
Source§impl Clone for WalletReadSource
impl Clone for WalletReadSource
Source§fn clone(&self) -> WalletReadSource
fn clone(&self) -> WalletReadSource
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 WalletReadSource
Source§impl Debug for WalletReadSource
impl Debug for WalletReadSource
Source§impl<'de> Deserialize<'de> for WalletReadSource
impl<'de> Deserialize<'de> for WalletReadSource
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 WalletReadSource
Source§impl PartialEq for WalletReadSource
impl PartialEq for WalletReadSource
Source§impl Serialize for WalletReadSource
impl Serialize for WalletReadSource
impl StructuralPartialEq for WalletReadSource
Auto Trait Implementations§
impl Freeze for WalletReadSource
impl RefUnwindSafe for WalletReadSource
impl Send for WalletReadSource
impl Sync for WalletReadSource
impl Unpin for WalletReadSource
impl UnsafeUnpin for WalletReadSource
impl UnwindSafe for WalletReadSource
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