pub trait ExExNotificationsStream: Stream<Item = Result<ExExNotification>> + Unpin {
// Required methods
fn set_without_head(&mut self);
fn set_with_head(&mut self, exex_head: ExExHead);
fn without_head(self) -> Self
where Self: Sized;
fn with_head(self, exex_head: ExExHead) -> Self
where Self: Sized;
}
Expand description
A trait, that represents a stream of ExExNotification
s. The stream will emit notifications
for all blocks. If the stream is configured with a head via ExExNotifications::set_with_head
or ExExNotifications::with_head
, it will run backfill jobs to catch up to the node head.
Required Methods§
Sourcefn set_without_head(&mut self)
fn set_without_head(&mut self)
Sets ExExNotificationsStream
to a stream of ExExNotification
s without a head.
It’s a no-op if the stream has already been configured without a head.
See the documentation of ExExNotificationsWithoutHead
for more details.
Sourcefn set_with_head(&mut self, exex_head: ExExHead)
fn set_with_head(&mut self, exex_head: ExExHead)
Sets ExExNotificationsStream
to a stream of ExExNotification
s with the provided
head.
It’s a no-op if the stream has already been configured with a head.
See the documentation of ExExNotificationsWithHead
for more details.
Sourcefn without_head(self) -> Selfwhere
Self: Sized,
fn without_head(self) -> Selfwhere
Self: Sized,
Returns a new ExExNotificationsStream
without a head.
See the documentation of ExExNotificationsWithoutHead
for more details.
Sourcefn with_head(self, exex_head: ExExHead) -> Selfwhere
Self: Sized,
fn with_head(self, exex_head: ExExHead) -> Selfwhere
Self: Sized,
Returns a new ExExNotificationsStream
with the provided head.
See the documentation of ExExNotificationsWithHead
for more details.