pub struct Mailbox<E, A>{ /* private fields */ }Expand description
Channel-based proxy to the Stateful actor.
Implements the consensus application and verifying traits by forwarding each call to the actor via a message and awaiting the response.
Implementations§
Trait Implementations§
Source§impl<E, A> Application<E> for Mailbox<E, A>
impl<E, A> Application<E> for Mailbox<E, A>
Source§type SigningScheme = <A as Application<E>>::SigningScheme
type SigningScheme = <A as Application<E>>::SigningScheme
The signing scheme used by the application.
Source§type Context = <A as Application<E>>::Context
type Context = <A as Application<E>>::Context
Context is metadata provided by the consensus engine associated with a given payload. Read more
Source§type Block = <A as Application<E>>::Block
type Block = <A as Application<E>>::Block
The block type produced by the application’s builder.
Auto Trait Implementations§
impl<E, A> Freeze for Mailbox<E, A>
impl<E, A> !RefUnwindSafe for Mailbox<E, A>
impl<E, A> Send for Mailbox<E, A>
impl<E, A> Sync for Mailbox<E, A>
impl<E, A> Unpin for Mailbox<E, A>
impl<E, A> UnsafeUnpin for Mailbox<E, A>
impl<E, A> !UnwindSafe for Mailbox<E, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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