[][src]Struct sc_consensus_babe::BabeWorker

#[must_use]pub struct BabeWorker<B: BlockT> { /* fields omitted */ }

Worker for Babe which implements Future<Output=()>. This must be polled.

Implementations

impl<B: BlockT> BabeWorker<B>[src]

pub fn slot_notification_stream(
    &self
) -> Receiver<(u64, ViableEpochDescriptor<B::Hash, NumberFor<B>, Epoch>)>
[src]

Return an event stream of notifications for when new slot happens, and the corresponding epoch descriptor.

Trait Implementations

impl<B: BlockT> Future for BabeWorker<B>[src]

type Output = ()

The type of value produced on completion.

Auto Trait Implementations

impl<B> !RefUnwindSafe for BabeWorker<B>

impl<B> Send for BabeWorker<B> where
    <B as Block>::Hash: Send,
    <B as Block>::Header: Header,
    <<B as Block>::Header as Header>::Number: Send

impl<B> !Sync for BabeWorker<B>

impl<B> Unpin for BabeWorker<B>

impl<B> !UnwindSafe for BabeWorker<B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized

impl<F> FutureExt for F where
    F: Future + ?Sized

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T> IntoFuture for T where
    T: Future

type Output = <T as Future>::Output

The type of value produced on completion.

type Future = T

Which kind of future are we turning this into?

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,