pub type BlockSubscription = InboundStream<BlockEvent, BlockEvent>;
Expand description

The inbound subscription stream of block events.

Aliased Type§

struct BlockSubscription {
    inner: Streaming<BlockEvent>,
    _phantom: PhantomData<BlockEvent>,
}

Fields§

§inner: Streaming<BlockEvent>§_phantom: PhantomData<BlockEvent>

Implementations§

source§

impl<P, T> InboundStream<P, T>

source

pub(crate) fn project<'pin>( self: Pin<&'pin mut Self> ) -> __InboundStreamProjection<'pin, P, T>

source

pub(crate) fn project_ref<'pin>( self: Pin<&'pin Self> ) -> __InboundStreamProjectionRef<'pin, P, T>

source§

impl<P, T> InboundStream<P, T>

source

pub(crate) fn new(inner: Streaming<P>) -> Self

Trait Implementations§

source§

impl<P, T> Stream for InboundStream<P, T>where T: FromProtobuf<P>,

§

type Item = Result<T, Error>

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Self::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
source§

impl<'pin, P, T> Unpin for InboundStream<P, T>where __InboundStream<'pin, P, T>: Unpin,