pub enum LatestBlock {
Latest {
block: Block,
},
Syncing {
block: Block,
},
WaitingToStart,
}Expand description
This struct represents potential responses from the latest block endpoint we can either be syncing, waiting for the chain to start, or have the the actual latest block to the best of the nodes knowledge, which isn’t at all a guarantee
Variants§
Latest
The chain is operating correctly and blocks are being produced, this is the latest one this node has access to
Syncing
The chain is operating correctly, but the node we made this request to is catching up and we should not trust it’s responses to be up to date
WaitingToStart
The chain is halted, this node is waiting for the chain to start again the caller should take appropriate action to await the chain start
Trait Implementations§
Source§impl Clone for LatestBlock
impl Clone for LatestBlock
Source§fn clone(&self) -> LatestBlock
fn clone(&self) -> LatestBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LatestBlock
impl RefUnwindSafe for LatestBlock
impl Send for LatestBlock
impl Sync for LatestBlock
impl Unpin for LatestBlock
impl UnwindSafe for LatestBlock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request