[][src]Trait sunshine_core::ChainClient

pub trait ChainClient<T: Runtime>: Send + Sync {
    type Keystore: Keystore<T>;
    type OffchainClient: Send + Sync;
    type Error: Error + Debug + Send + 'static + From<<Self::Keystore as Keystore<T>>::Error> + From<Error> + From<Error> + From<Error>;
    fn keystore(&self) -> &Self::Keystore;
fn keystore_mut(&mut self) -> &mut Self::Keystore;
fn chain_client(&self) -> &Client<T>;
fn chain_signer(
        &self
    ) -> Result<&(dyn ChainSigner<T> + Send + Sync), Self::Error>;
fn offchain_client(&self) -> &Self::OffchainClient;
fn offchain_signer(&self) -> Result<&dyn OffchainSigner<T>, Self::Error>; }

Associated Types

type Keystore: Keystore<T>

type OffchainClient: Send + Sync

type Error: Error + Debug + Send + 'static + From<<Self::Keystore as Keystore<T>>::Error> + From<Error> + From<Error> + From<Error>

Loading content...

Required methods

fn keystore(&self) -> &Self::Keystore

fn keystore_mut(&mut self) -> &mut Self::Keystore

fn chain_client(&self) -> &Client<T>

fn chain_signer(
    &self
) -> Result<&(dyn ChainSigner<T> + Send + Sync), Self::Error>

fn offchain_client(&self) -> &Self::OffchainClient

fn offchain_signer(&self) -> Result<&dyn OffchainSigner<T>, Self::Error>

Loading content...

Implementors

Loading content...