Struct distance_oracle::runtime::runtime_types::pallet_scheduler::Scheduled
source · pub struct Scheduled<_0, _1, _2, _3, _4> {
pub maybe_id: Option<_0>,
pub priority: u8,
pub call: _1,
pub maybe_periodic: Option<(_2, _2)>,
pub origin: _3,
pub __ignore: PhantomData<_4>,
}
Fields§
§maybe_id: Option<_0>
§priority: u8
§call: _1
§maybe_periodic: Option<(_2, _2)>
§origin: _3
§__ignore: PhantomData<_4>
Trait Implementations§
source§impl<_0: Debug, _1: Debug, _2: Debug, _3: Debug, _4: Debug> Debug for Scheduled<_0, _1, _2, _3, _4>
impl<_0: Debug, _1: Debug, _2: Debug, _3: Debug, _4: Debug> Debug for Scheduled<_0, _1, _2, _3, _4>
source§impl<_0, _1, _2, _3, _4> Decode for Scheduled<_0, _1, _2, _3, _4>where
Option<_0>: Decode,
_1: Decode,
Option<(_2, _2)>: Decode,
_3: Decode,
PhantomData<_4>: Default,
impl<_0, _1, _2, _3, _4> Decode for Scheduled<_0, _1, _2, _3, _4>where
Option<_0>: Decode,
_1: Decode,
Option<(_2, _2)>: Decode,
_3: Decode,
PhantomData<_4>: Default,
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: 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
source§impl<_0, _1, _2, _3, _4> DecodeAsFields for Scheduled<_0, _1, _2, _3, _4>where
_0: IntoVisitor,
_1: IntoVisitor,
_2: IntoVisitor,
_3: IntoVisitor,
_4: IntoVisitor,
impl<_0, _1, _2, _3, _4> DecodeAsFields for Scheduled<_0, _1, _2, _3, _4>where
_0: IntoVisitor,
_1: IntoVisitor,
_2: IntoVisitor,
_3: IntoVisitor,
_4: IntoVisitor,
source§impl<_0, _1, _2, _3, _4> Encode for Scheduled<_0, _1, _2, _3, _4>
impl<_0, _1, _2, _3, _4> Encode for Scheduled<_0, _1, _2, _3, _4>
source§fn size_hint(&self) -> usize
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
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<_0, _1, _2, _3, _4> EncodeAsFields for Scheduled<_0, _1, _2, _3, _4>where
_0: EncodeAsType,
_1: EncodeAsType,
_2: EncodeAsType,
_3: EncodeAsType,
_4: EncodeAsType,
impl<_0, _1, _2, _3, _4> EncodeAsFields for Scheduled<_0, _1, _2, _3, _4>where
_0: EncodeAsType,
_1: EncodeAsType,
_2: EncodeAsType,
_3: EncodeAsType,
_4: EncodeAsType,
source§fn encode_as_fields_to<ScaleEncodeResolver: TypeResolver>(
&self,
__encode_as_type_fields: &mut dyn FieldIter<'_, ScaleEncodeResolver::TypeId>,
__encode_as_type_types: &ScaleEncodeResolver,
__encode_as_type_out: &mut Vec<u8>
) -> Result<(), Error>
fn encode_as_fields_to<ScaleEncodeResolver: TypeResolver>( &self, __encode_as_type_fields: &mut dyn FieldIter<'_, ScaleEncodeResolver::TypeId>, __encode_as_type_types: &ScaleEncodeResolver, __encode_as_type_out: &mut Vec<u8> ) -> Result<(), Error>
Given some fields describing the shape of a type, attempt to encode to that shape.
§fn encode_as_fields<R>(
&self,
fields: &mut dyn FieldIter<'_, <R as TypeResolver>::TypeId, Item = Field<'_, <R as TypeResolver>::TypeId>>,
types: &R
) -> Result<Vec<u8>, Error>where
R: TypeResolver,
fn encode_as_fields<R>(
&self,
fields: &mut dyn FieldIter<'_, <R as TypeResolver>::TypeId, Item = Field<'_, <R as TypeResolver>::TypeId>>,
types: &R
) -> Result<Vec<u8>, Error>where
R: TypeResolver,
This is a helper function which internally calls [
EncodeAsFields::encode_as_fields_to
]. Prefer to
implement that instead.source§impl<_0, _1, _2, _3, _4> EncodeAsType for Scheduled<_0, _1, _2, _3, _4>where
_0: EncodeAsType,
_1: EncodeAsType,
_2: EncodeAsType,
_3: EncodeAsType,
_4: EncodeAsType,
impl<_0, _1, _2, _3, _4> EncodeAsType for Scheduled<_0, _1, _2, _3, _4>where
_0: EncodeAsType,
_1: EncodeAsType,
_2: EncodeAsType,
_3: EncodeAsType,
_4: EncodeAsType,
source§fn encode_as_type_to<ScaleEncodeResolver: TypeResolver>(
&self,
__encode_as_type_type_id: &ScaleEncodeResolver::TypeId,
__encode_as_type_types: &ScaleEncodeResolver,
__encode_as_type_out: &mut Vec<u8>
) -> Result<(), Error>
fn encode_as_type_to<ScaleEncodeResolver: TypeResolver>( &self, __encode_as_type_type_id: &ScaleEncodeResolver::TypeId, __encode_as_type_types: &ScaleEncodeResolver, __encode_as_type_out: &mut Vec<u8> ) -> Result<(), Error>
Given some
type_id
, types
, a context
and some output target for the SCALE encoded bytes,
attempt to SCALE encode the current value into the type given by type_id
.source§impl<_0, _1, _2, _3, _4> IntoVisitor for Scheduled<_0, _1, _2, _3, _4>where
_0: IntoVisitor,
_1: IntoVisitor,
_2: IntoVisitor,
_3: IntoVisitor,
_4: IntoVisitor,
impl<_0, _1, _2, _3, _4> IntoVisitor for Scheduled<_0, _1, _2, _3, _4>where
_0: IntoVisitor,
_1: IntoVisitor,
_2: IntoVisitor,
_3: IntoVisitor,
_4: IntoVisitor,
§type AnyVisitor<ScaleDecodeTypeResolver: TypeResolver> = Visitor<_0, _1, _2, _3, _4, ScaleDecodeTypeResolver>
type AnyVisitor<ScaleDecodeTypeResolver: TypeResolver> = Visitor<_0, _1, _2, _3, _4, ScaleDecodeTypeResolver>
The visitor type used to decode SCALE encoded bytes to
Self
.source§fn into_visitor<ScaleDecodeTypeResolver: TypeResolver>(
) -> Self::AnyVisitor<ScaleDecodeTypeResolver>
fn into_visitor<ScaleDecodeTypeResolver: TypeResolver>( ) -> Self::AnyVisitor<ScaleDecodeTypeResolver>
A means of obtaining this visitor.
impl<_0, _1, _2, _3, _4> EncodeLike for Scheduled<_0, _1, _2, _3, _4>
Auto Trait Implementations§
impl<_0, _1, _2, _3, _4> Freeze for Scheduled<_0, _1, _2, _3, _4>
impl<_0, _1, _2, _3, _4> RefUnwindSafe for Scheduled<_0, _1, _2, _3, _4>where
_0: RefUnwindSafe,
_1: RefUnwindSafe,
_2: RefUnwindSafe,
_3: RefUnwindSafe,
_4: RefUnwindSafe,
impl<_0, _1, _2, _3, _4> Send for Scheduled<_0, _1, _2, _3, _4>
impl<_0, _1, _2, _3, _4> Sync for Scheduled<_0, _1, _2, _3, _4>
impl<_0, _1, _2, _3, _4> Unpin for Scheduled<_0, _1, _2, _3, _4>
impl<_0, _1, _2, _3, _4> UnwindSafe for Scheduled<_0, _1, _2, _3, _4>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeAsType for Twhere
T: IntoVisitor,
impl<T> DecodeAsType for Twhere
T: IntoVisitor,
fn decode_as_type_maybe_compact<R>(
input: &mut &[u8],
type_id: &<R as TypeResolver>::TypeId,
types: &R,
is_compact: bool
) -> Result<T, Error>where
R: TypeResolver,
§fn decode_as_type<R>(
input: &mut &[u8],
type_id: &<R as TypeResolver>::TypeId,
types: &R
) -> Result<Self, Error>where
R: TypeResolver,
fn decode_as_type<R>(
input: &mut &[u8],
type_id: &<R as TypeResolver>::TypeId,
types: &R
) -> Result<Self, Error>where
R: TypeResolver,
Given some input bytes, a
type_id
, and type registry, attempt to decode said bytes into
Self
. Implementations should modify the &mut
reference to the bytes such that any bytes
not used in the course of decoding are still pointed to after decoding is complete.§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> DecodeWithMetadata for Twhere
T: DecodeAsType,
impl<T> DecodeWithMetadata for Twhere
T: DecodeAsType,
§fn decode_with_metadata(
bytes: &mut &[u8],
type_id: u32,
metadata: &Metadata
) -> Result<T, Error>
fn decode_with_metadata( bytes: &mut &[u8], type_id: u32, metadata: &Metadata ) -> Result<T, Error>
Given some metadata and a type ID, attempt to SCALE decode the provided bytes into
Self
.§impl<T> EncodeWithMetadata for Twhere
T: EncodeAsType,
impl<T> EncodeWithMetadata for Twhere
T: EncodeAsType,
§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere
T: Codec,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.