pub struct TConsensusGroupId {
pub type_: TConsensusGroupType,
pub id: i32,
}
Fields§
§type_: TConsensusGroupType
§id: i32
Implementations§
Source§impl TConsensusGroupId
impl TConsensusGroupId
pub fn new(type_: TConsensusGroupType, id: i32) -> TConsensusGroupId
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<TConsensusGroupId>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol, ) -> Result<()>
Trait Implementations§
Source§impl Clone for TConsensusGroupId
impl Clone for TConsensusGroupId
Source§fn clone(&self) -> TConsensusGroupId
fn clone(&self) -> TConsensusGroupId
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 TConsensusGroupId
impl Debug for TConsensusGroupId
Source§impl Hash for TConsensusGroupId
impl Hash for TConsensusGroupId
Source§impl Ord for TConsensusGroupId
impl Ord for TConsensusGroupId
Source§fn cmp(&self, other: &TConsensusGroupId) -> Ordering
fn cmp(&self, other: &TConsensusGroupId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TConsensusGroupId
impl PartialEq for TConsensusGroupId
Source§impl PartialOrd for TConsensusGroupId
impl PartialOrd for TConsensusGroupId
impl Eq for TConsensusGroupId
impl StructuralPartialEq for TConsensusGroupId
Auto Trait Implementations§
impl Freeze for TConsensusGroupId
impl RefUnwindSafe for TConsensusGroupId
impl Send for TConsensusGroupId
impl Sync for TConsensusGroupId
impl Unpin for TConsensusGroupId
impl UnwindSafe for TConsensusGroupId
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