pub enum Message<B, V, C, A = Exact>{
NextLog {
span: Span,
height: Height,
release: Sender<Self>,
response: Sender<Option<LogReservation<B, V, C, A>>>,
},
ReleaseLog {
height: Height,
},
EpochInfo {
span: Span,
ancestry: BoxedAncestry<B>,
response: Sender<EpochInfoResponse<V, C, B::Directory>>,
},
Finalized {
span: Span,
block: Arc<B>,
response: A,
},
}Expand description
A message that can be sent to the Actor.
Variants§
NextLog
A request for the next finalized dealer log to include before the final block of the epoch.
height is the height of the block being proposed. The actor uses it to
avoid re-offering a log into competing proposals while one it already
served into may still finalize.
Fields
§
response: Sender<Option<LogReservation<B, V, C, A>>>ReleaseLog
A proposal attempt was canceled or returned no block after receiving a dealer log.
EpochInfo
A request for the final block’s speculative EpochInfo.
Finalized
A new block has been finalized.
Trait Implementations§
Auto Trait Implementations§
impl<B, V, C, A = Exact> !RefUnwindSafe for Message<B, V, C, A>
impl<B, V, C, A = Exact> !Sync for Message<B, V, C, A>
impl<B, V, C, A = Exact> !UnwindSafe for Message<B, V, C, A>
impl<B, V, C, A> Freeze for Message<B, V, C, A>where
Sender<Message<B, V, C, A>>: Freeze,
Sender<Option<LogReservation<B, V, C, A>>>: Freeze,
BoxedAncestry<B>: Freeze,
Sender<EpochInfoResponse<V, C, <B as ReshareBlock>::Directory>>: Freeze,
Arc<B>: Freeze,
A: Freeze,
impl<B, V, C, A> Send for Message<B, V, C, A>where
Sender<Message<B, V, C, A>>: Send,
Sender<Option<LogReservation<B, V, C, A>>>: Send,
BoxedAncestry<B>: Send,
Sender<EpochInfoResponse<V, C, <B as ReshareBlock>::Directory>>: Send,
Arc<B>: Send,
impl<B, V, C, A> Unpin for Message<B, V, C, A>where
Sender<Message<B, V, C, A>>: Unpin,
Sender<Option<LogReservation<B, V, C, A>>>: Unpin,
BoxedAncestry<B>: Unpin,
Sender<EpochInfoResponse<V, C, <B as ReshareBlock>::Directory>>: Unpin,
Arc<B>: Unpin,
A: Unpin,
impl<B, V, C, A> UnsafeUnpin for Message<B, V, C, A>where
Sender<Message<B, V, C, A>>: UnsafeUnpin,
Sender<Option<LogReservation<B, V, C, A>>>: UnsafeUnpin,
BoxedAncestry<B>: UnsafeUnpin,
Sender<EpochInfoResponse<V, C, <B as ReshareBlock>::Directory>>: UnsafeUnpin,
Arc<B>: UnsafeUnpin,
A: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more