Struct iotdb_client::client::common::TRegionReplicaSet
source · pub struct TRegionReplicaSet {
pub region_id: TConsensusGroupId,
pub data_node_locations: Vec<Box<TDataNodeLocation>>,
}
Fields§
§region_id: TConsensusGroupId
§data_node_locations: Vec<Box<TDataNodeLocation>>
Implementations§
source§impl TRegionReplicaSet
impl TRegionReplicaSet
pub fn new( region_id: TConsensusGroupId, data_node_locations: Vec<Box<TDataNodeLocation>> ) -> TRegionReplicaSet
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol ) -> Result<TRegionReplicaSet>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol ) -> Result<()>
Trait Implementations§
source§impl Clone for TRegionReplicaSet
impl Clone for TRegionReplicaSet
source§fn clone(&self) -> TRegionReplicaSet
fn clone(&self) -> TRegionReplicaSet
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 TRegionReplicaSet
impl Debug for TRegionReplicaSet
source§impl Hash for TRegionReplicaSet
impl Hash for TRegionReplicaSet
source§impl Ord for TRegionReplicaSet
impl Ord for TRegionReplicaSet
source§fn cmp(&self, other: &TRegionReplicaSet) -> Ordering
fn cmp(&self, other: &TRegionReplicaSet) -> 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 TRegionReplicaSet
impl PartialEq for TRegionReplicaSet
source§fn eq(&self, other: &TRegionReplicaSet) -> bool
fn eq(&self, other: &TRegionReplicaSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TRegionReplicaSet
impl PartialOrd for TRegionReplicaSet
source§fn partial_cmp(&self, other: &TRegionReplicaSet) -> Option<Ordering>
fn partial_cmp(&self, other: &TRegionReplicaSet) -> 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 TRegionReplicaSet
impl StructuralPartialEq for TRegionReplicaSet
Auto Trait Implementations§
impl Freeze for TRegionReplicaSet
impl RefUnwindSafe for TRegionReplicaSet
impl Send for TRegionReplicaSet
impl Sync for TRegionReplicaSet
impl Unpin for TRegionReplicaSet
impl UnwindSafe for TRegionReplicaSet
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