pub enum WalletOperatorAddressUnavailableReason {
NotInitialized,
Unreadable,
}Expand description
Why a node cannot name its own operator wallet.
Two reasons, and they call for different responses: one is a node that has not finished setting itself up, the other is a node whose machine custody is broken.
Variants§
NotInitialized
The operator wallet has not been created yet.
Nothing is wrong. A node that has never run its autoseed setup has no operator wallet, and therefore no address; it will have one. A client MUST NOT present this as a fault.
Unreadable
The operator wallet exists but this node could not read it.
A fault: the seed material is present and unreadable, or its unseal failed. The node cannot pay mirror collateral in this state either, so a client SHOULD surface it.
Trait Implementations§
Source§fn clone(&self) -> WalletOperatorAddressUnavailableReason
fn clone(&self) -> WalletOperatorAddressUnavailableReason
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§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
Auto Trait Implementations§
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