[][src]Trait solana_vote_signer::rpc::VoteSignerRpc

pub trait VoteSignerRpc: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn register(
        &self,
        _: Self::Metadata,
        _: Pubkey,
        _: Signature,
        _: Vec<u8>
    ) -> Result<Pubkey>;
fn sign(
        &self,
        _: Self::Metadata,
        _: Pubkey,
        _: Signature,
        _: Vec<u8>
    ) -> Result<Signature>;
fn deregister(
        &self,
        _: Self::Metadata,
        _: Pubkey,
        _: Signature,
        _: Vec<u8>
    ) -> Result<()>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Associated Types

Loading content...

Required methods

fn register(
    &self,
    _: Self::Metadata,
    _: Pubkey,
    _: Signature,
    _: Vec<u8>
) -> Result<Pubkey>

fn sign(
    &self,
    _: Self::Metadata,
    _: Pubkey,
    _: Signature,
    _: Vec<u8>
) -> Result<Signature>

fn deregister(
    &self,
    _: Self::Metadata,
    _: Pubkey,
    _: Signature,
    _: Vec<u8>
) -> Result<()>

Loading content...

Provided methods

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl VoteSignerRpc for VoteSignerRpcImpl[src]

type Metadata = Meta

Loading content...