Struct mz_adapter::catalog::ClusterReplica
source · pub struct ClusterReplica {
pub name: String,
pub cluster_id: StorageInstanceId,
pub replica_id: ReplicaId,
pub config: ReplicaConfig,
pub process_status: BTreeMap<u64, ClusterReplicaProcessStatus>,
pub owner_id: RoleId,
}Fields§
§name: String§cluster_id: StorageInstanceId§replica_id: ReplicaId§config: ReplicaConfig§process_status: BTreeMap<u64, ClusterReplicaProcessStatus>§owner_id: RoleIdImplementations§
source§impl ClusterReplica
impl ClusterReplica
sourcepub fn status(&self) -> ServiceStatus
pub fn status(&self) -> ServiceStatus
Computes the status of the cluster replica as a whole.
Trait Implementations§
source§impl CatalogClusterReplica<'_> for ClusterReplica
impl CatalogClusterReplica<'_> for ClusterReplica
source§fn cluster_id(&self) -> StorageInstanceId
fn cluster_id(&self) -> StorageInstanceId
Returns a stable ID for the cluster that the replica belongs to.
source§fn replica_id(&self) -> ReplicaId
fn replica_id(&self) -> ReplicaId
Returns a stable ID for the replica.
source§impl Clone for ClusterReplica
impl Clone for ClusterReplica
source§fn clone(&self) -> ClusterReplica
fn clone(&self) -> ClusterReplica
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 ClusterReplica
impl Debug for ClusterReplica
source§impl Serialize for ClusterReplica
impl Serialize for ClusterReplica
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ClusterReplica
impl Send for ClusterReplica
impl Sync for ClusterReplica
impl Unpin for ClusterReplica
impl UnwindSafe for ClusterReplica
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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::Requestsource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Clone,
impl<T> PreferredContainer for Twhere T: Clone,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto.