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§impl PartialOrd for TRegionReplicaSet
impl PartialOrd for TRegionReplicaSet
impl 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