pub enum SystemEntityRegistryResult {
RootNotFound,
SystemEntityRegistryNotFound,
NamedEntityNotFound(String),
Success {
selected: SystemEntityRegistrySelector,
payload: SystemEntityRegistryPayload,
},
Failure(TrackingCopyError),
}Expand description
The result of a system entity registry request.
Variants§
RootNotFound
Invalid state root hash.
SystemEntityRegistryNotFound
The system contract registry was not found. This is a valid outcome on older networks, which did not have the system contract registry prior to protocol version 1.4
NamedEntityNotFound(String)
The named entity was not found in the registry.
Success
Successful request.
Fields
§
selected: SystemEntityRegistrySelectorWhat was asked for.
§
payload: SystemEntityRegistryPayloadThe payload asked for.
Failure(TrackingCopyError)
Failed to get requested data.
Implementations§
Source§impl SystemEntityRegistryResult
impl SystemEntityRegistryResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Is success.
Sourcepub fn as_registry_payload(&self) -> Result<SystemEntityRegistryPayload, String>
pub fn as_registry_payload(&self) -> Result<SystemEntityRegistryPayload, String>
As registry payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemEntityRegistryResult
impl RefUnwindSafe for SystemEntityRegistryResult
impl Send for SystemEntityRegistryResult
impl Sync for SystemEntityRegistryResult
impl Unpin for SystemEntityRegistryResult
impl UnwindSafe for SystemEntityRegistryResult
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