Struct pallet_atomic_swap::BalanceSwapAction [−][src]
pub struct BalanceSwapAction<AccountId, C: ReservableCurrency<AccountId>> { /* fields omitted */ }
Expand description
A swap action that only allows transferring balances.
Implementations
Trait Implementations
impl<AccountId: Clone, C: Clone + ReservableCurrency<AccountId>> Clone for BalanceSwapAction<AccountId, C>
impl<AccountId: Clone, C: Clone + ReservableCurrency<AccountId>> Clone for BalanceSwapAction<AccountId, C>impl<AccountId, C: ReservableCurrency<AccountId>> Debug for BalanceSwapAction<AccountId, C> where
AccountId: Debug,
C: Debug,
impl<AccountId, C: ReservableCurrency<AccountId>> Debug for BalanceSwapAction<AccountId, C> where
AccountId: Debug,
C: Debug, impl<AccountId, C: ReservableCurrency<AccountId>> Decode for BalanceSwapAction<AccountId, C> where
<C as Currency<AccountId>>::Balance: Decode,
<C as Currency<AccountId>>::Balance: Decode,
PhantomData<C>: Decode,
PhantomData<C>: Decode,
impl<AccountId, C: ReservableCurrency<AccountId>> Decode for BalanceSwapAction<AccountId, C> where
<C as Currency<AccountId>>::Balance: Decode,
<C as Currency<AccountId>>::Balance: Decode,
PhantomData<C>: Decode,
PhantomData<C>: Decode, Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>Returns the fixed encoded size of the type. Read more
impl<AccountId, C> Deref for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>,
impl<AccountId, C> Deref for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>, impl<AccountId, C> DerefMut for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>,
impl<AccountId, C> DerefMut for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>, impl<AccountId, C: ReservableCurrency<AccountId>> Encode for BalanceSwapAction<AccountId, C> where
<C as Currency<AccountId>>::Balance: Encode,
<C as Currency<AccountId>>::Balance: Encode,
PhantomData<C>: Encode,
PhantomData<C>: Encode,
impl<AccountId, C: ReservableCurrency<AccountId>> Encode for BalanceSwapAction<AccountId, C> where
<C as Currency<AccountId>>::Balance: Encode,
<C as Currency<AccountId>>::Balance: Encode,
PhantomData<C>: Encode,
PhantomData<C>: Encode, Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usizeCalculates the encoded size. Read more
impl<AccountId: PartialEq, C: PartialEq + ReservableCurrency<AccountId>> PartialEq<BalanceSwapAction<AccountId, C>> for BalanceSwapAction<AccountId, C>
impl<AccountId: PartialEq, C: PartialEq + ReservableCurrency<AccountId>> PartialEq<BalanceSwapAction<AccountId, C>> for BalanceSwapAction<AccountId, C>This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
impl<T: Config, AccountId, C> SwapAction<AccountId, T> for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>,
impl<T: Config, AccountId, C> SwapAction<AccountId, T> for BalanceSwapAction<AccountId, C> where
C: ReservableCurrency<AccountId>, impl<AccountId, C: ReservableCurrency<AccountId>> EncodeLike<BalanceSwapAction<AccountId, C>> for BalanceSwapAction<AccountId, C> where
<C as Currency<AccountId>>::Balance: Encode,
<C as Currency<AccountId>>::Balance: Encode,
PhantomData<C>: Encode,
PhantomData<C>: Encode, impl<AccountId: Eq, C: Eq + ReservableCurrency<AccountId>> Eq for BalanceSwapAction<AccountId, C>impl<AccountId, C: ReservableCurrency<AccountId>> StructuralEq for BalanceSwapAction<AccountId, C>impl<AccountId, C: ReservableCurrency<AccountId>> StructuralPartialEq for BalanceSwapAction<AccountId, C>Auto Trait Implementations
impl<AccountId, C> RefUnwindSafe for BalanceSwapAction<AccountId, C> where
C: RefUnwindSafe,
<C as Currency<AccountId>>::Balance: RefUnwindSafe, impl<AccountId, C> Send for BalanceSwapAction<AccountId, C> where
C: Send,
<C as Currency<AccountId>>::Balance: Send, impl<AccountId, C> Sync for BalanceSwapAction<AccountId, C> where
C: Sync,
<C as Currency<AccountId>>::Balance: Sync, impl<AccountId, C> Unpin for BalanceSwapAction<AccountId, C> where
C: Unpin,
<C as Currency<AccountId>>::Balance: Unpin, impl<AccountId, C> UnwindSafe for BalanceSwapAction<AccountId, C> where
C: UnwindSafe,
<C as Currency<AccountId>>::Balance: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> Vimpl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode, impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode, impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode, impl<T> EncodeLike<Arc<T>> for T where
T: Encode, impl<T> EncodeLike<Rc<T>> for T where
T: Encode, impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,