Struct iotdb_client::client::common::TConsensusGroupId
source · 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§fn eq(&self, other: &TConsensusGroupId) -> bool
fn eq(&self, other: &TConsensusGroupId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TConsensusGroupId
impl PartialOrd for TConsensusGroupId
source§fn partial_cmp(&self, other: &TConsensusGroupId) -> Option<Ordering>
fn partial_cmp(&self, other: &TConsensusGroupId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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