[−][src]Struct exonum_supervisor::ConfigPropose
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]
self,
public_key: PublicKey,
secret_key: &SecretKey
) -> Verified<AnyTx>
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]
self,
instance_id: InstanceId,
config: impl BinaryValue
) -> Self
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]
fn from(v: ConfigPropose) -> Self
[src]
impl Clone for ConfigPropose
[src]
fn clone(&self) -> ConfigPropose
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ConfigPropose
[src]
impl PartialEq<ConfigPropose> for ConfigPropose
[src]
fn eq(&self, other: &ConfigPropose) -> bool
[src]
fn ne(&self, other: &ConfigPropose) -> bool
[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.
fn from_str(s: &str) -> Result<Self, Self::Err>
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
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
fn to_pb(&self) -> Self::ProtoStruct
[src]
impl BinaryValue for ConfigPropose
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn from_bytes(value: Cow<[u8]>) -> Result<Self, Error>
[src]
fn into_bytes(self) -> Vec<u8>
[src]
impl ObjectHash for ConfigPropose
[src]
fn object_hash(&self) -> Hash
[src]
impl<'de> Deserialize<'de> for ConfigPropose
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
impl Serialize for ConfigPropose
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
impl FromHex for ConfigPropose
impl ToHex for ConfigPropose
fn encode_hex<T: FromIterator<char>>(&self) -> T
fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
impl BinaryKey for ConfigPropose
fn size(&self) -> usize
fn write(&self, buffer: &mut [u8]) -> usize
fn read(buffer: &[u8]) -> Self::Owned
impl Transaction<dyn SupervisorInterface + 'static> for ConfigPropose
[src]
Auto Trait Implementations
impl Send for ConfigPropose
impl Sync for ConfigPropose
impl Unpin for ConfigPropose
impl UnwindSafe for ConfigPropose
impl RefUnwindSafe for ConfigPropose
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,