Struct frame_support::traits::TransformOrigin
source · pub struct TransformOrigin<E, O, N, C>(_);
Expand description
Transform the origin of an EnqueueMessage
via C::convert
.
Trait Implementations§
source§impl<E: EnqueueMessage<O>, O: MaxEncodedLen, N: MaxEncodedLen, C: Convert<N, O>> EnqueueMessage<N> for TransformOrigin<E, O, N, C>
impl<E: EnqueueMessage<O>, O: MaxEncodedLen, N: MaxEncodedLen, C: Convert<N, O>> EnqueueMessage<N> for TransformOrigin<E, O, N, C>
§type MaxMessageLen = <E as EnqueueMessage<O>>::MaxMessageLen
type MaxMessageLen = <E as EnqueueMessage<O>>::MaxMessageLen
The maximal length any enqueued message may have.
source§fn enqueue_message(
message: BoundedSlice<'_, u8, Self::MaxMessageLen>,
origin: N
)
fn enqueue_message( message: BoundedSlice<'_, u8, Self::MaxMessageLen>, origin: N )
Enqueue a single
message
from a specific origin
.source§fn enqueue_messages<'a>(
messages: impl Iterator<Item = BoundedSlice<'a, u8, Self::MaxMessageLen>>,
origin: N
)
fn enqueue_messages<'a>( messages: impl Iterator<Item = BoundedSlice<'a, u8, Self::MaxMessageLen>>, origin: N )
Enqueue multiple
messages
from a specific origin
.source§fn sweep_queue(origin: N)
fn sweep_queue(origin: N)
Any remaining unprocessed messages should happen only lazily, not proactively.
Auto Trait Implementations§
impl<E, O, N, C> RefUnwindSafe for TransformOrigin<E, O, N, C>where C: RefUnwindSafe, E: RefUnwindSafe, N: RefUnwindSafe, O: RefUnwindSafe,
impl<E, O, N, C> Send for TransformOrigin<E, O, N, C>where C: Send, E: Send, N: Send, O: Send,
impl<E, O, N, C> Sync for TransformOrigin<E, O, N, C>where C: Sync, E: Sync, N: Sync, O: Sync,
impl<E, O, N, C> Unpin for TransformOrigin<E, O, N, C>where C: Unpin, E: Unpin, N: Unpin, O: Unpin,
impl<E, O, N, C> UnwindSafe for TransformOrigin<E, O, N, C>where C: UnwindSafe, E: UnwindSafe, N: UnwindSafe, O: UnwindSafe,
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§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 moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.