Enum ibc_relayer::worker::WorkerCmd
source · pub enum WorkerCmd {
IbcEvents {
batch: EventBatch,
},
NewBlock {
height: Height,
new_block: NewBlock,
},
ClearPendingPackets,
}Expand description
A command for a WorkerHandle.
Variants§
IbcEvents
Fields
§
batch: EventBatchA batch of packet events need to be relayed
NewBlock
A new block has been committed
ClearPendingPackets
Trigger a pending packets clear
Implementations§
source§impl WorkerCmd
impl WorkerCmd
sourcepub fn is_ibc_events(&self) -> bool
pub fn is_ibc_events(&self) -> bool
Returns true if the worker cmd is IbcEvents.
sourcepub fn is_new_block(&self) -> bool
pub fn is_new_block(&self) -> bool
Returns true if the worker cmd is NewBlock.
sourcepub fn is_clear_pending_packets(&self) -> bool
pub fn is_clear_pending_packets(&self) -> bool
Returns true if the worker cmd is ClearPendingPackets.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WorkerCmd
impl Send for WorkerCmd
impl Sync for WorkerCmd
impl Unpin for WorkerCmd
impl UnwindSafe for WorkerCmd
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request