Struct typedb_driver::info::ReplicaInfo
source · pub struct ReplicaInfo {
pub address: Address,
pub is_primary: bool,
pub is_preferred: bool,
pub term: i64,
}
Expand description
The metadata and state of an individual raft replica of a database.
Fields§
§address: Address
The address of the server hosting this replica
is_primary: bool
Whether this is the primary replica of the raft cluster.
is_preferred: bool
Whether this is the preferred replica of the raft cluster. If true, Operations which can be run on any replica will prefer to use this replica.
term: i64
The raft protocol ‘term’ of this replica.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnwindSafe for ReplicaInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request