pub struct ExecutionSignal<Hash>{
pub step: u32,
pub kind: SignalKind,
pub execution_id: Hash,
}Expand description
A representation of a signal
Fields§
§step: u32The current step for the signal
kind: SignalKindThe signal type
execution_id: HashThe id associated with the execution
Implementations§
Trait Implementations§
Source§impl<Hash> Clone for ExecutionSignal<Hash>
impl<Hash> Clone for ExecutionSignal<Hash>
Source§fn clone(&self) -> ExecutionSignal<Hash>
fn clone(&self) -> ExecutionSignal<Hash>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Hash> Debug for ExecutionSignal<Hash>
impl<Hash> Debug for ExecutionSignal<Hash>
Source§impl<Hash> Decode for ExecutionSignal<Hash>
impl<Hash> Decode for ExecutionSignal<Hash>
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<Hash> Encode for ExecutionSignal<Hash>
impl<Hash> Encode for ExecutionSignal<Hash>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<Hash> MaxEncodedLen for ExecutionSignal<Hash>
impl<Hash> MaxEncodedLen for ExecutionSignal<Hash>
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl<Hash> PartialEq for ExecutionSignal<Hash>
impl<Hash> PartialEq for ExecutionSignal<Hash>
Source§impl<Hash> TypeInfo for ExecutionSignal<Hash>
impl<Hash> TypeInfo for ExecutionSignal<Hash>
impl<Hash> EncodeLike for ExecutionSignal<Hash>
impl<Hash> Eq for ExecutionSignal<Hash>
impl<Hash> StructuralPartialEq for ExecutionSignal<Hash>
Auto Trait Implementations§
impl<Hash> Freeze for ExecutionSignal<Hash>where
Hash: Freeze,
impl<Hash> RefUnwindSafe for ExecutionSignal<Hash>where
Hash: RefUnwindSafe,
impl<Hash> Send for ExecutionSignal<Hash>where
Hash: Send,
impl<Hash> Sync for ExecutionSignal<Hash>where
Hash: Sync,
impl<Hash> Unpin for ExecutionSignal<Hash>where
Hash: Unpin,
impl<Hash> UnwindSafe for ExecutionSignal<Hash>where
Hash: UnwindSafe,
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