solana_rpc_client_nonce_utils::nonblocking

Function data_from_state

Source
pub fn data_from_state(state: &State) -> Result<&Data, Error>
Expand description

Get the nonce data from its State value.

ยงErrors

Returns Error::InvalidStateForOperation if state is State::Uninitialized.