Enum linera_execution::system::AdminOperation
source · pub enum AdminOperation {
CreateCommittee {
epoch: Epoch,
committee: Committee,
},
RemoveCommittee {
epoch: Epoch,
},
}Expand description
Operations that are only allowed on the admin chain.
Variants§
CreateCommittee
Registers a new committee. This will notify the subscribers of the admin chain so that they
can migrate to the new epoch by accepting the resulting SetCommittees as an incoming
message in a block.
RemoveCommittee
Removes a committee. Once the resulting SetCommittees message is accepted by a chain,
blocks from the retired epoch will not be accepted until they are followed (hence
re-certified) by a block certified by a recent committee.
Trait Implementations§
source§impl Clone for AdminOperation
impl Clone for AdminOperation
source§fn clone(&self) -> AdminOperation
fn clone(&self) -> AdminOperation
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 Debug for AdminOperation
impl Debug for AdminOperation
source§impl<'de> Deserialize<'de> for AdminOperation
impl<'de> Deserialize<'de> for AdminOperation
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 Hash for AdminOperation
impl Hash for AdminOperation
source§impl PartialEq for AdminOperation
impl PartialEq for AdminOperation
source§fn eq(&self, other: &AdminOperation) -> bool
fn eq(&self, other: &AdminOperation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AdminOperation
impl Serialize for AdminOperation
impl Eq for AdminOperation
impl StructuralPartialEq for AdminOperation
Auto Trait Implementations§
impl Freeze for AdminOperation
impl RefUnwindSafe for AdminOperation
impl Send for AdminOperation
impl Sync for AdminOperation
impl Unpin for AdminOperation
impl UnwindSafe for AdminOperation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.