Struct stp258_currencies::Stp258AssetAdapter[][src]

pub struct Stp258AssetAdapter<T, Currency, Amount, Moment>(_);

Adapt other currency traits implementation to Stp258Asset.

Trait Implementations

impl<T, AccountId, Currency, Amount, Moment> Stp258Asset<AccountId> for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Currency: SetheumCurrency<AccountId>,
    T: Config
[src]

type Balance = <Currency as SetheumCurrency<AccountId>>::Balance

The balance of an account.

impl<T, AccountId, Currency, Amount, Moment> Stp258AssetExtended<AccountId> for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: Signed + TryInto<<Currency as SetheumCurrency<AccountId>>::Balance> + TryFrom<<Currency as SetheumCurrency<AccountId>>::Balance> + SimpleArithmetic + Codec + Copy + MaybeSerializeDeserialize + Debug + Default,
    Currency: SetheumCurrency<AccountId>,
    T: Config
[src]

type Amount = Amount

The signed type for balance related operations, typically signed int.

impl<T, AccountId, Currency, Amount, Moment> Stp258AssetLockable<AccountId> for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Currency: SetheumLockableCurrency<AccountId>,
    T: Config
[src]

type Moment = Moment

The quantity used to denote time; usually just a BlockNumber.

impl<T, AccountId, Currency, Amount, Moment> Stp258AssetReservable<AccountId> for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Currency: SetheumReservableCurrency<AccountId>,
    T: Config
[src]

Auto Trait Implementations

impl<T, Currency, Amount, Moment> RefUnwindSafe for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: RefUnwindSafe,
    Currency: RefUnwindSafe,
    Moment: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, Currency, Amount, Moment> Send for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: Send,
    Currency: Send,
    Moment: Send,
    T: Send

impl<T, Currency, Amount, Moment> Sync for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: Sync,
    Currency: Sync,
    Moment: Sync,
    T: Sync

impl<T, Currency, Amount, Moment> Unpin for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: Unpin,
    Currency: Unpin,
    Moment: Unpin,
    T: Unpin

impl<T, Currency, Amount, Moment> UnwindSafe for Stp258AssetAdapter<T, Currency, Amount, Moment> where
    Amount: UnwindSafe,
    Currency: UnwindSafe,
    Moment: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

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

impl<T> Instrument for T[src]

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

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

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

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,