Enum RuntimeHoldReason

Source
pub enum RuntimeHoldReason {
    Contracts(HoldReason),
}
Expand description

A reason for placing a hold on funds.

Variantsยง

ยง

Contracts(HoldReason)

Trait Implementationsยง

Sourceยง

impl Clone for RuntimeHoldReason

Sourceยง

fn clone(&self) -> RuntimeHoldReason

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for RuntimeHoldReason

Sourceยง

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Decode for RuntimeHoldReason

Sourceยง

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>

Attempt to deserialise the value from input.
Sourceยง

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Sourceยง

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
Sourceยง

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
Sourceยง

impl Encode for RuntimeHoldReason

Sourceยง

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Sourceยง

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )

Convert self to a slice and append it to the destination.
Sourceยง

fn encode(&self) -> Vec<u8> โ“˜

Convert self to an owned vector.
Sourceยง

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.
Sourceยง

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Sourceยง

impl From<HoldReason> for RuntimeHoldReason

Sourceยง

fn from(hr: HoldReason) -> Self

Converts to this type from the input type.
Sourceยง

impl MaxEncodedLen for RuntimeHoldReason

Sourceยง

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
Sourceยง

impl PartialEq for RuntimeHoldReason

Sourceยง

fn eq(&self, other: &RuntimeHoldReason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl TypeInfo for RuntimeHoldReason

Sourceยง

type Identity = RuntimeHoldReason

The type identifying for which type info is provided. Read more
Sourceยง

fn type_info() -> Type

Returns the static type identifier for Self.
Sourceยง

impl VariantCount for RuntimeHoldReason

Sourceยง

const VARIANT_COUNT: u32 = 2u32

Get the number of variants.
Sourceยง

impl Copy for RuntimeHoldReason

Sourceยง

impl EncodeLike for RuntimeHoldReason

Sourceยง

impl Eq for RuntimeHoldReason

Sourceยง

impl StructuralPartialEq for RuntimeHoldReason

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CheckedConversion for T

Sourceยง

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
Sourceยง

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> DecodeAll for T
where T: Decode,

Sourceยง

fn decode_all(input: &mut &[u8]) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
Sourceยง

impl<T> DecodeLimit for T
where T: Decode,

Sourceยง

fn decode_all_with_depth_limit( limit: u32, input: &mut &[u8], ) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
Sourceยง

fn decode_with_depth_limit<I>(limit: u32, input: &mut I) -> Result<T, Error>
where I: Input,

Decode Self with the given maximum recursion depth and advance input by the number of bytes consumed. Read more
Sourceยง

impl<T> Downcast for T
where T: Any,

Sourceยง

fn into_any(self: Box<T>) -> Box<dyn 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.
Sourceยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
Sourceยง

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.
Sourceยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Sourceยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

impl<T> DynClone for T
where T: Clone,

Sourceยง

fn __clone_box(&self, _: Private) -> *mut ()

Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Sourceยง

impl<I, T> ExtractContext<I, ()> for T

Sourceยง

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Hashable for T
where T: Codec,

Sourceยง

impl<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> IntoEither for T

Sourceยง

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

Sourceยง

fn into_key(self) -> U

Sourceยง

impl<T> IsType<T> for T

Sourceยง

fn from_ref(t: &T) -> &T

Cast reference.
Sourceยง

fn into_ref(&self) -> &T

Cast reference.
Sourceยง

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
Sourceยง

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
Sourceยง

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

Sourceยง

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

Get a reference to the inner from the outer.

Sourceยง

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

Get a mutable reference to the inner from the outer.

Sourceยง

impl<T> KeyedVec for T
where T: Codec,

Sourceยง

fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8> โ“˜

Return an encoding of Self prepended by given slice.
Sourceยง

impl<I> RecreateContext<I> for I

Sourceยง

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T> SaturatedConversion for T

Sourceยง

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
Sourceยง

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
Sourceยง

impl<P> Storable for P
where P: Codec,

Sourceยง

fn encode<T>(&self, dest: &mut T)
where T: Output + ?Sized,

Convert self to a slice and append it to the destination.
Sourceยง

fn decode<I>(input: &mut I) -> Result<P, Error>
where I: Input,

Attempt to deserialize the value from input.
Sourceยง

fn encoded_size(&self) -> usize

The exact number of bytes this type consumes in the encoded form.
Sourceยง

impl<P, Key> StorableHint<Key> for P
where P: Packed, Key: StorageKey,

Sourceยง

type Type = P

Storable type with storage key inside.
Sourceยง

type PreferredKey = AutoKey

The storage key that the type prefers. It can be overwritten by an auto-generated storage key.
Sourceยง

impl<P> StorageKey for P
where P: Packed,

Sourceยง

const KEY: u32 = 0u32

Storage key of the type.
Sourceยง

fn key(&self) -> u32

Returns the storage key.
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

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

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

Sourceยง

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

Sourceยง

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
Sourceยง

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

Sourceยง

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
Sourceยง

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

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<T> AssetId for T

Sourceยง

impl<S> Codec for S
where S: Decode + Encode,

Sourceยง

impl<T> EncodeLike<&&T> for T
where T: Encode,

Sourceยง

impl<T> EncodeLike<&T> for T
where T: Encode,

Sourceยง

impl<T> EncodeLike<&mut T> for T
where T: Encode,

Sourceยง

impl<T> EncodeLike<Arc<T>> for T
where T: Encode,

Sourceยง

impl<T> EncodeLike<Box<T>> for T
where T: Encode,

Sourceยง

impl<T> EncodeLike<Cow<'_, T>> for T
where T: ToOwned + Encode,

Sourceยง

impl<T> EncodeLike<Rc<T>> for T
where T: Encode,

Sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

Sourceยง

impl<S> FullCodec for S
where S: Decode + FullEncode,

Sourceยง

impl<S> FullEncode for S
where S: Encode + EncodeLike,

Sourceยง

impl<T> MaybeDebug for T
where T: Debug,

Sourceยง

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

Sourceยง

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

Sourceยง

impl<P> Packed for P
where P: Decode + Encode,

Sourceยง

impl<T> Parameter for T
where T: Codec + EncodeLike + Clone + Eq + Debug + TypeInfo,

Sourceยง

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,