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.