Struct casper_node::types::GetStatusResult
source · pub struct GetStatusResult {Show 14 fields
pub peers: PeersMap,
pub api_version: ProtocolVersion,
pub build_version: String,
pub chainspec_name: String,
pub starting_state_root_hash: Digest,
pub last_added_block_info: Option<MinimalBlockInfo>,
pub our_public_signing_key: Option<PublicKey>,
pub round_length: Option<TimeDiff>,
pub next_upgrade: Option<NextUpgrade>,
pub uptime: TimeDiff,
pub reactor_state: ReactorState,
pub last_progress: Timestamp,
pub available_block_range: AvailableBlockRange,
pub block_sync: BlockSynchronizerStatus,
}
Expand description
Result for “info_get_status” RPC response.
Fields§
§peers: PeersMap
The node ID and network address of each connected peer.
api_version: ProtocolVersion
The RPC API version.
build_version: String
The compiled node version.
chainspec_name: String
The chainspec name.
starting_state_root_hash: Digest
The state root hash of the lowest block in the available block range.
last_added_block_info: Option<MinimalBlockInfo>
The minimal info of the last block from the linear chain.
our_public_signing_key: Option<PublicKey>
Our public signing key.
round_length: Option<TimeDiff>
The next round length if this node is a validator.
next_upgrade: Option<NextUpgrade>
Information about the next scheduled upgrade.
uptime: TimeDiff
Time that passed since the node has started.
reactor_state: ReactorState
The current state of node reactor.
last_progress: Timestamp
Timestamp of the last recorded progress in the reactor.
available_block_range: AvailableBlockRange
The available block range in storage.
block_sync: BlockSynchronizerStatus
The status of the block synchronizer builders.
Trait Implementations§
source§impl Debug for GetStatusResult
impl Debug for GetStatusResult
source§impl<'de> Deserialize<'de> for GetStatusResult
impl<'de> Deserialize<'de> for GetStatusResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 DocExample for GetStatusResult
impl DocExample for GetStatusResult
source§fn doc_example() -> &'static Self
fn doc_example() -> &'static Self
Generates a hardcoded example of
Self
.source§impl JsonSchema for GetStatusResult
impl JsonSchema for GetStatusResult
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for GetStatusResult
impl PartialEq for GetStatusResult
source§fn eq(&self, other: &GetStatusResult) -> bool
fn eq(&self, other: &GetStatusResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetStatusResult
impl Serialize for GetStatusResult
impl Eq for GetStatusResult
impl StructuralPartialEq for GetStatusResult
Auto Trait Implementations§
impl RefUnwindSafe for GetStatusResult
impl Send for GetStatusResult
impl Sync for GetStatusResult
impl Unpin for GetStatusResult
impl UnwindSafe for GetStatusResult
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.