[][src]Struct exonum_supervisor::ConfigPropose

pub struct ConfigPropose {
    pub actual_from: Height,
    pub changes: Vec<ConfigChange>,
    pub configuration_number: u64,
}

Request for the configuration change

Fields

actual_from: Height

The height until which the update configuration procedure should be completed.

changes: Vec<ConfigChange>

New configuration proposition.

configuration_number: u64

Configuration proposal number to avoid conflicting proposals.

Methods

impl ConfigPropose[src]

pub fn sign_for_supervisor(
    self,
    public_key: PublicKey,
    secret_key: &SecretKey
) -> Verified<AnyTx>
[src]

Signs the proposal for the supervisor service.

pub fn new(configuration_number: u64, actual_from: Height) -> Self[src]

Creates a new proposal which activates at the specified height.

pub fn immediate(configuration_number: u64) -> Self[src]

Creates a new proposal which should be activated at the next height.

pub fn consensus_config(self, config: ConsensusConfig) -> Self[src]

Adds a change of consensus configuration to this proposal.

pub fn service_config(
    self,
    instance_id: InstanceId,
    config: impl BinaryValue
) -> Self
[src]

Adds change of the configuration for the specified service instance.

pub fn start_service(self, start_service: StartService) -> Self[src]

Adds service start request to this proposal.

Trait Implementations

impl From<ConfigPropose> for ConfigVote[src]

impl Clone for ConfigPropose[src]

impl Eq for ConfigPropose[src]

impl PartialEq<ConfigPropose> for ConfigPropose[src]

impl Debug for ConfigPropose[src]

impl Display for ConfigPropose

impl FromStr for ConfigPropose

type Err = Error

The associated error which can be returned from parsing.

impl StructuralPartialEq for ConfigPropose[src]

impl StructuralEq for ConfigPropose[src]

impl ProtobufConvert for ConfigPropose[src]

type ProtoStruct = ConfigPropose

Type of the protobuf clone of Self

impl BinaryValue for ConfigPropose[src]

impl ObjectHash for ConfigPropose[src]

impl<'de> Deserialize<'de> for ConfigPropose

impl Serialize for ConfigPropose

impl FromHex for ConfigPropose

type Error = Error

impl ToHex for ConfigPropose

impl BinaryKey for ConfigPropose

impl Transaction<dyn SupervisorInterface + 'static> for ConfigPropose[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]