Enum solana_client::blockhash_query::Source
source · [−]pub enum Source {
Cluster,
NonceAccount(Pubkey),
}
Variants
Cluster
NonceAccount(Pubkey)
Implementations
sourceimpl Source
impl Source
pub fn get_blockhash_and_fee_calculator(
&self,
rpc_client: &RpcClient,
commitment: CommitmentConfig
) -> Result<(Hash, FeeCalculator), Box<dyn Error>>
👎Deprecated since 1.9.0: Please use
get_blockhash
insteadpub fn get_fee_calculator(
&self,
rpc_client: &RpcClient,
blockhash: &Hash,
commitment: CommitmentConfig
) -> Result<Option<FeeCalculator>, Box<dyn Error>>
👎Deprecated since 1.9.0: Please do not use, will no longer be available in the future
pub fn get_blockhash(
&self,
rpc_client: &RpcClient,
commitment: CommitmentConfig
) -> Result<Hash, Box<dyn Error>>
pub fn is_blockhash_valid(
&self,
rpc_client: &RpcClient,
blockhash: &Hash,
commitment: CommitmentConfig
) -> Result<bool, Box<dyn Error>>
Trait Implementations
impl Eq for Source
impl StructuralEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.