[][src]Struct substrate_client::light::backend::Backend

pub struct Backend<S, H: Hasher> { /* fields omitted */ }

Light client backend.

Methods

impl<S, H: Hasher> Backend<S, H>[src]

pub fn new(blockchain: Arc<Blockchain<S>>) -> Self[src]

Create new light backend.

pub fn blockchain(&self) -> &Arc<Blockchain<S>>[src]

Get shared blockchain reference.

Trait Implementations

impl<S: AuxStore, H: Hasher> AuxStore for Backend<S, H>[src]

impl<S, Block, H> Backend<Block, H> for Backend<S, H> where
    Block: BlockT,
    S: BlockchainStorage<Block>,
    H: Hasher<Out = Block::Hash>,
    H::Out: Ord
[src]

type BlockImportOperation = ImportOperation<Block, S, H>

Associated block insertion operation type.

type Blockchain = Blockchain<S>

Associated blockchain backend type.

type State = GenesisOrUnavailableState<H>

Associated state backend type.

type ChangesTrieStorage = ChangesTrieStorage<Block, H>

Changes trie storage.

type OffchainStorage = OffchainStorage

Offchain workers local storage.

impl<S, Block, H> RemoteBackend<Block, H> for Backend<S, H> where
    Block: BlockT,
    S: BlockchainStorage<Block> + 'static,
    H: Hasher<Out = Block::Hash>,
    H::Out: Ord
[src]

Auto Trait Implementations

impl<S, H> Send for Backend<S, H> where
    S: Send + Sync,
    <H as Hasher>::Out: Send

impl<S, H> Unpin for Backend<S, H> where
    H: Unpin,
    <H as Hasher>::Out: Unpin

impl<S, H> Sync for Backend<S, H> where
    S: Send + Sync,
    <H as Hasher>::Out: Send + Sync

impl<S, H> UnwindSafe for Backend<S, H> where
    H: UnwindSafe,
    S: RefUnwindSafe,
    <H as Hasher>::Out: UnwindSafe

impl<S, H> !RefUnwindSafe for Backend<S, H>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded
[src]

impl<T> SaturatedConversion for T[src]

impl<T> CheckedConversion for T[src]

impl<T> Erased for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]