referrerpolicy=no-referrer-when-downgrade
polkadot_node_subsystem

Type Alias SubsystemIncomingMessages

pub type SubsystemIncomingMessages<M> = SelectWithStrategy<MeteredReceiver<MessagePacket<M>>, UnboundedMeteredReceiver<MessagePacket<M>>, fn(_: &mut ()) -> PollNext, ()>;
Expand description

Incoming messages from both the bounded and unbounded channel.

Aliased Type§

struct SubsystemIncomingMessages<M> { /* private fields */ }

Implementations

§

impl<St1, St2, Clos, State> SelectWithStrategy<St1, St2, Clos, State>

pub fn get_ref(&self) -> (&St1, &St2)

Acquires a reference to the underlying streams that this combinator is pulling from.

pub fn get_mut(&mut self) -> (&mut St1, &mut St2)

Acquires a mutable reference to the underlying streams that this combinator is pulling from.

Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.

pub fn get_pin_mut( self: Pin<&mut SelectWithStrategy<St1, St2, Clos, State>>, ) -> (Pin<&mut St1>, Pin<&mut St2>)

Acquires a pinned mutable reference to the underlying streams that this combinator is pulling from.

Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.

pub fn into_inner(self) -> (St1, St2)

Consumes this combinator, returning the underlying streams.

Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.

Trait Implementations

§

impl<St1, St2, Clos, State> Debug for SelectWithStrategy<St1, St2, Clos, State>
where St1: Debug, St2: Debug, State: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<St1, St2, Clos, State> FusedStream for SelectWithStrategy<St1, St2, Clos, State>
where St1: Stream, St2: Stream<Item = <St1 as Stream>::Item>, Clos: FnMut(&mut State) -> PollNext,

§

fn is_terminated(&self) -> bool

Returns true if the stream should no longer be polled.
§

impl<St1, St2, Clos, State> Stream for SelectWithStrategy<St1, St2, Clos, State>
where St1: Stream, St2: Stream<Item = <St1 as Stream>::Item>, Clos: FnMut(&mut State) -> PollNext,

§

type Item = <St1 as Stream>::Item

Values yielded by the stream.
§

fn poll_next( self: Pin<&mut SelectWithStrategy<St1, St2, Clos, State>>, cx: &mut Context<'_>, ) -> Poll<Option<<St1 as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the stream. Read more
§

impl<'__pin, St1, St2, Clos, State> Unpin for SelectWithStrategy<St1, St2, Clos, State>
where __Origin<'__pin, St1, St2, Clos, State>: Unpin,