Type Alias sc_client_api::client::ImportNotifications
source · pub type ImportNotifications<Block> = TracingUnboundedReceiver<BlockImportNotification<Block>>;
Expand description
Type that implements futures::Stream
of block import events.
Aliased Type§
struct ImportNotifications<Block> { /* private fields */ }
Implementations
source§impl<T> TracingUnboundedReceiver<T>
impl<T> TracingUnboundedReceiver<T>
sourcepub fn close(&mut self) -> bool
pub fn close(&mut self) -> bool
Proxy function to async_channel::Receiver
.
sourcepub fn try_recv(&mut self) -> Result<T, TryRecvError>
pub fn try_recv(&mut self) -> Result<T, TryRecvError>
Proxy function to async_channel::Receiver
that discounts the messages taken out.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
The number of elements in the channel (proxy function to async_channel::Receiver
).
Trait Implementations
source§impl<T> Debug for TracingUnboundedReceiver<T>where
T: Debug,
impl<T> Debug for TracingUnboundedReceiver<T>where
T: Debug,
source§impl<T> Drop for TracingUnboundedReceiver<T>
impl<T> Drop for TracingUnboundedReceiver<T>
source§impl<T> FusedStream for TracingUnboundedReceiver<T>
impl<T> FusedStream for TracingUnboundedReceiver<T>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.