#[non_exhaustive]pub enum PlaneStatus {
Scheduler,
Indexer,
DbGateway,
ViewGateway,
Stub,
}Expand description
Backend implementation currently serving a public RPC plane.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scheduler
The public plane is backed by hogd-dev’s SchedGateway x23 endpoint.
The serialized value remains scheduler for compatibility.
Indexer
The plane is backed by hogd-dev’s IndexerBlockExplorer x23 endpoint.
DbGateway
The plane is backed by hogd-dev’s DbGateway x23 endpoint.
ViewGateway
The plane is backed by hogd-dev’s ViewGateway x23 endpoint.
Stub
The plane is intentionally served by the supervisor stub.
Implementations§
Source§impl PlaneStatus
impl PlaneStatus
Sourcepub const fn is_indexer_backed(self) -> bool
pub const fn is_indexer_backed(self) -> bool
Returns true when this plane is backed by hogd-dev’s IndexerBlockExplorer endpoint.
Trait Implementations§
Source§impl Clone for PlaneStatus
impl Clone for PlaneStatus
impl Copy for PlaneStatus
Source§impl Debug for PlaneStatus
impl Debug for PlaneStatus
impl Eq for PlaneStatus
Source§impl PartialEq for PlaneStatus
impl PartialEq for PlaneStatus
Source§impl Serialize for PlaneStatus
impl Serialize for PlaneStatus
impl StructuralPartialEq for PlaneStatus
Auto Trait Implementations§
impl Freeze for PlaneStatus
impl RefUnwindSafe for PlaneStatus
impl Send for PlaneStatus
impl Sync for PlaneStatus
impl Unpin for PlaneStatus
impl UnsafeUnpin for PlaneStatus
impl UnwindSafe for PlaneStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.