pub trait AsSigner: Send + Sync {
    // Required method
    fn as_signer(&self) -> &dyn Signer;

    // Provided method
    fn signer_pubkey(&self) -> Pubkey { ... }
}
Expand description

A trait for types that can act as signers for transactions.

Required Methods§

source

fn as_signer(&self) -> &dyn Signer

Returns a reference to the signer.

Provided Methods§

Implementations on Foreign Types§

source§

impl<'a> AsSigner for &Arc<RwLockReadGuard<'a, Keypair>>

source§

fn as_signer(&self) -> &dyn Signer

source§

impl<'a> AsSigner for &RwLockReadGuard<'a, Keypair>

source§

fn as_signer(&self) -> &dyn Signer

source§

impl<'a> AsSigner for Arc<&'a Keypair>

source§

fn as_signer(&self) -> &dyn Signer

Implementors§

source§

impl<T> AsSigner for T
where T: ToKeypair,