pub enum EraValidatorsResult {
AuctionNotFound,
RootNotFound,
ValueNotFound(String),
Failure(TrackingCopyError),
Success {
era_validators: EraValidators,
},
}Expand description
Result enum that represents all possible outcomes of a era validators request.
Variants§
AuctionNotFound
Returned if auction is not found. This is a catastrophic outcome.
RootNotFound
Returned if a passed state root hash is not found. This is recoverable.
ValueNotFound(String)
Value not found. This is not erroneous if the record does not exist.
Failure(TrackingCopyError)
There is no systemic issue, but the query itself errored.
Success
The query succeeded.
Fields
§
era_validators: EraValidatorsEra Validators.
Implementations§
Source§impl EraValidatorsResult
impl EraValidatorsResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if success.
Sourcepub fn take_era_validators(self) -> Option<EraValidators>
pub fn take_era_validators(self) -> Option<EraValidators>
Takes era validators.
Trait Implementations§
Source§impl Debug for EraValidatorsResult
impl Debug for EraValidatorsResult
Auto Trait Implementations§
impl Freeze for EraValidatorsResult
impl RefUnwindSafe for EraValidatorsResult
impl Send for EraValidatorsResult
impl Sync for EraValidatorsResult
impl Unpin for EraValidatorsResult
impl UnwindSafe for EraValidatorsResult
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more