Skip to main content

MetaSource

Trait MetaSource 

Source
pub trait MetaSource {
    type Error;
    type AccountId;
    type NoteRef;

    // Required method
    fn change_receivers(
        &self,
        account: Self::AccountId,
    ) -> Result<ChangeReceivers, Self::Error>;
}
Expand description

A trait that defines a set of types used in wallet metadata retrieval. Ordinarily, this will correspond to a type that implements InputSource, and a blanket implementation of this trait is provided for all types that implement InputSource.

If more capabilities are required of the backend than are exposed in the InputSource trait, the implementer of this trait should define their own trait that descends from InputSource and adds the required capabilities there, and then implement that trait for their desired database backend.

Required Associated Types§

Required Methods§

Source

fn change_receivers( &self, account: Self::AccountId, ) -> Result<ChangeReceivers, Self::Error>

Returns the outputs in which the given account can receive change.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MetaSource for Infallible

Implementors§