pub struct NetworkContext {
pub blocks: Sender<OpExecutionPayloadEnvelope>,
pub cancellation: CancellationToken,
}Expand description
The communication context used by the network actor.
Fields§
§blocks: Sender<OpExecutionPayloadEnvelope>The channel used by the sequencer actor for sending unsafe blocks to the network.
cancellation: CancellationTokenCancels the network actor.
Trait Implementations§
Source§impl CancellableContext for NetworkContext
impl CancellableContext for NetworkContext
Source§fn cancelled(&self) -> WaitForCancellationFuture<'_>
fn cancelled(&self) -> WaitForCancellationFuture<'_>
Returns a future that resolves when the actor is cancelled.
Auto Trait Implementations§
impl Freeze for NetworkContext
impl RefUnwindSafe for NetworkContext
impl Send for NetworkContext
impl Sync for NetworkContext
impl Unpin for NetworkContext
impl UnwindSafe for NetworkContext
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> 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