pub struct State {
pub chain_id: u8,
pub version: u64,
pub timestamp_usecs: u64,
}
Fields§
§chain_id: u8
§version: u64
§timestamp_usecs: u64
Implementations§
§impl State
impl State
pub fn from_response(resp: &JsonRpcResponse) -> State
Trait Implementations§
§impl Ord for State
impl Ord for State
§impl PartialOrd<State> for State
impl PartialOrd<State> for State
§fn partial_cmp(&self, other: &State) -> Option<Ordering>
fn partial_cmp(&self, other: &State) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.