[][src]Struct pbft_engine::protos::pbft_message::PbftMessageInfo

pub struct PbftMessageInfo {
    pub msg_type: String,
    pub view: u64,
    pub seq_num: u64,
    pub signer_id: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,

Generated files are compatible only with the same version of protobuf runtime.


msg_type: Stringview: u64seq_num: u64signer_id: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize


impl PbftMessageInfo[src]

pub fn new_from(
    msg_type: PbftMessageType,
    view: u64,
    seq_num: u64,
    signer_id: PeerId
) -> Self

impl PbftMessageInfo[src]

pub fn new() -> PbftMessageInfo[src]

pub fn get_msg_type(&self) -> &str[src]

pub fn clear_msg_type(&mut self)[src]

pub fn set_msg_type(&mut self, v: String)[src]

pub fn mut_msg_type(&mut self) -> &mut String[src]

pub fn take_msg_type(&mut self) -> String[src]

pub fn get_view(&self) -> u64[src]

pub fn clear_view(&mut self)[src]

pub fn set_view(&mut self, v: u64)[src]

pub fn get_seq_num(&self) -> u64[src]

pub fn clear_seq_num(&mut self)[src]

pub fn set_seq_num(&mut self, v: u64)[src]

pub fn get_signer_id(&self) -> &[u8][src]

pub fn clear_signer_id(&mut self)[src]

pub fn set_signer_id(&mut self, v: Vec<u8>)[src]

pub fn mut_signer_id(&mut self) -> &mut Vec<u8>[src]

pub fn take_signer_id(&mut self) -> Vec<u8>[src]

Trait Implementations

impl Clear for PbftMessageInfo[src]

impl Clone for PbftMessageInfo[src]

impl Debug for PbftMessageInfo[src]

impl Default for PbftMessageInfo[src]

impl<'a> Default for &'a PbftMessageInfo[src]

impl<'de> Deserialize<'de> for PbftMessageInfo[src]

impl Display for PbftMessageInfo[src]

impl Hash for PbftMessageInfo[src]

impl Message for PbftMessageInfo[src]

impl PartialEq<PbftMessageInfo> for PbftMessageInfo[src]

impl ProtobufValue for PbftMessageInfo[src]

impl Serialize for PbftMessageInfo[src]

impl StructuralPartialEq for PbftMessageInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for PbftMessageInfo

impl Send for PbftMessageInfo

impl Sync for PbftMessageInfo

impl Unpin for PbftMessageInfo

impl UnwindSafe for PbftMessageInfo

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any