Skip to main content

MirrorBondStatesUnknownReason

Enum MirrorBondStatesUnknownReason 

Source
pub enum MirrorBondStatesUnknownReason {
    ServedSetUnknown,
    ChainUnreadable,
    InFlightUnknown,
    ProvenanceUnknown,
}
Expand description

Why a node cannot state its bond states AT ALL.

The “cannot tell” axis, and it is deliberately separate from every per-bond state, all of which are DEFINITE statements. A fact the node could not read makes the WHOLE answer MirrorBondStatesResult::Unknown rather than degrading individual rows: a partial list is indistinguishable from a complete one, and the rows a broken read would drop are exactly the bonds nobody is then watching.

The epoch requirement being unknown is NOT a member — that is a definite per-bond state (MirrorBondState::Deferred) and the node can still answer.

Variants§

§

ServedSetUnknown

The node cannot enumerate the (store, root) pairs it holds, so it does not know which bonds exist to have a state. Nothing may be substituted: the census stores figure counts network-wide advertisements and is not this node’s set.

§

ChainUnreadable

The node cannot read mirror coins from chain, so it cannot tell a bonded pair from an unfunded one. Answering unfunded here would be a fabricated shortfall.

§

InFlightUnknown

The node cannot read its own in-flight creates, so it cannot tell Pending from Unfunded — a submitted create and no create at all look identical from chain alone during the gap.

§

ProvenanceUnknown

The node can enumerate the (store, root) pairs it holds, but cannot determine their PROVENANCE, so it cannot tell a Relayed capsule apart from one that is simply absent.

The one non-infrastructure reason, and it exists because the alternative is a lie. A derivation keyed on the desired-bond (Held) set enumerates perfectly well and yet can never emit Withheld, because a Relayed capsule is by construction absent from that set. Without this reason its only conforming-LOOKING answer is a known page with complete: true and every withheld row silently missing — the exact “no such row where the contract promises withheld on purpose” failure, wearing the shape of a complete answer. This reason is how such a node says so instead.

Implementations§

Source§

impl MirrorBondStatesUnknownReason

Source

pub const ALL: &'static [MirrorBondStatesUnknownReason]

Every reason, for exhaustive rendering and for the wire-token uniqueness KAT.

Source

pub const fn as_wire(self) -> &'static str

The stable snake_case wire token, matching the reason field.

Trait Implementations§

Source§

impl Clone for MirrorBondStatesUnknownReason

Source§

fn clone(&self) -> MirrorBondStatesUnknownReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MirrorBondStatesUnknownReason

Source§

impl Debug for MirrorBondStatesUnknownReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MirrorBondStatesUnknownReason

Source§

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 Eq for MirrorBondStatesUnknownReason

Source§

impl PartialEq for MirrorBondStatesUnknownReason

Source§

fn eq(&self, other: &MirrorBondStatesUnknownReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MirrorBondStatesUnknownReason

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MirrorBondStatesUnknownReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.