pub struct Engine<E: Clock + GClock + Rng + CryptoRng + Spawner + Storage + Metrics, B: Blocker<PublicKey = PublicKey>, I: Indexer> { /* private fields */ }Expand description
The engine that drives the application.
Implementations§
Source§impl<E: Clock + GClock + Rng + CryptoRng + Spawner + Storage + Metrics, B: Blocker<PublicKey = PublicKey>, I: Indexer> Engine<E, B, I>
impl<E: Clock + GClock + Rng + CryptoRng + Spawner + Storage + Metrics, B: Blocker<PublicKey = PublicKey>, I: Indexer> Engine<E, B, I>
Sourcepub fn start(
self,
pending: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>),
recovered: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>),
resolver: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>),
broadcast: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>),
marshal: (Receiver<Message<Block>>, impl Resolver<Key = Request<Block>>),
) -> Handle<()>
pub fn start( self, pending: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>), recovered: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>), resolver: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>), broadcast: (impl Sender<PublicKey = PublicKey>, impl Receiver<PublicKey = PublicKey>), marshal: (Receiver<Message<Block>>, impl Resolver<Key = Request<Block>>), ) -> Handle<()>
Start the simplex::Engine.
Auto Trait Implementations§
impl<E, B, I> !Freeze for Engine<E, B, I>
impl<E, B, I> !RefUnwindSafe for Engine<E, B, I>
impl<E, B, I> Send for Engine<E, B, I>
impl<E, B, I> Sync for Engine<E, B, I>where
B: Sync,
impl<E, B, I> Unpin for Engine<E, B, I>
impl<E, B, I> !UnwindSafe for Engine<E, B, I>
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> 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