Enum safecoin_client::blockhash_query::Source
source · pub enum Source {
Cluster,
NonceAccount(Pubkey),
}
Variants§
Implementations§
source§impl 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§
source§impl PartialEq<Source> for Source
impl PartialEq<Source> for Source
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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.