pub enum ConsensusTypeEnum {
BFT,
GENESIS_PRAOS,
Other(String),
}
Variants§
Trait Implementations§
source§impl Clone for ConsensusTypeEnum
impl Clone for ConsensusTypeEnum
source§fn clone(&self) -> ConsensusTypeEnum
fn clone(&self) -> ConsensusTypeEnum
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 ConsensusTypeEnum
impl Debug for ConsensusTypeEnum
source§impl<'de> Deserialize<'de> for ConsensusTypeEnum
impl<'de> Deserialize<'de> for ConsensusTypeEnum
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusTypeEnum
impl Send for ConsensusTypeEnum
impl Sync for ConsensusTypeEnum
impl Unpin for ConsensusTypeEnum
impl UnwindSafe for ConsensusTypeEnum
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request