pub enum SequencerOutcome<A: BasicAddress> {
Rewarded(u64),
Slashed {
reason: SlashingReason,
sequencer_da_address: A,
},
Ignored,
}
Expand description
Represents the different outcomes that can occur for a sequencer after batch processing.
Variants§
Rewarded(u64)
Sequencer receives reward amount in defined token and can withdraw its deposit
Slashed
Fields
§
reason: SlashingReason
Reason why sequencer was slashed.
§
sequencer_da_address: A
Sequencer address on DA.
Sequencer loses its deposit and receives no reward
Ignored
Batch was ignored, sequencer deposit left untouched.
Trait Implementations§
source§impl<A: Clone + BasicAddress> Clone for SequencerOutcome<A>
impl<A: Clone + BasicAddress> Clone for SequencerOutcome<A>
source§fn clone(&self) -> SequencerOutcome<A>
fn clone(&self) -> SequencerOutcome<A>
Returns a copy 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<A: Debug + BasicAddress> Debug for SequencerOutcome<A>
impl<A: Debug + BasicAddress> Debug for SequencerOutcome<A>
source§impl<'de, A: BasicAddress> Deserialize<'de> for SequencerOutcome<A>
impl<'de, A: BasicAddress> Deserialize<'de> for SequencerOutcome<A>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A: PartialEq + BasicAddress> PartialEq<SequencerOutcome<A>> for SequencerOutcome<A>
impl<A: PartialEq + BasicAddress> PartialEq<SequencerOutcome<A>> for SequencerOutcome<A>
source§fn eq(&self, other: &SequencerOutcome<A>) -> bool
fn eq(&self, other: &SequencerOutcome<A>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<A> Serialize for SequencerOutcome<A>where
A: Serialize + BasicAddress,
impl<A> Serialize for SequencerOutcome<A>where A: Serialize + BasicAddress,
impl<A: Eq + BasicAddress> Eq for SequencerOutcome<A>
impl<A: BasicAddress> StructuralEq for SequencerOutcome<A>
impl<A: BasicAddress> StructuralPartialEq for SequencerOutcome<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for SequencerOutcome<A>where A: RefUnwindSafe,
impl<A> Send for SequencerOutcome<A>
impl<A> Sync for SequencerOutcome<A>
impl<A> Unpin for SequencerOutcome<A>where A: Unpin,
impl<A> UnwindSafe for SequencerOutcome<A>where A: 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