Struct fluvio_controlplane_metadata::topic::TopicStatus
source · pub struct TopicStatus {
pub resolution: TopicResolution,
pub replica_map: ReplicaMap,
pub mirror_map: MirrorMap,
pub reason: String,
}
Fields§
§resolution: TopicResolution
§replica_map: ReplicaMap
§mirror_map: MirrorMap
§reason: String
Implementations§
source§impl TopicStatus
impl TopicStatus
pub fn new( resolution: TopicResolution, replica_map: Vec<Vec<SpuId>>, reason: impl Into<String> ) -> Self
pub fn resolution(&self) -> &TopicResolution
pub fn replica_map_cnt(&self) -> i32
pub fn set_replica_map(&mut self, replica_map: ReplicaMap)
pub fn set_mirror_map(&mut self, mirror_map: MirrorMap)
pub fn spus_in_replica(&self) -> Vec<SpuId>
pub fn replica_map_str(&self) -> String
pub fn replica_map_cnt_str(&self) -> String
pub fn reason_str(&self) -> &String
pub fn is_resolution_initializing(&self) -> bool
sourcepub fn need_replica_map_recal(&self) -> bool
pub fn need_replica_map_recal(&self) -> bool
need to update the replic map
pub fn is_resolution_pending(&self) -> bool
pub fn is_resolution_transient(&self) -> bool
pub fn is_resolution_provisioned(&self) -> bool
sourcepub fn next_resolution_pending() -> (TopicResolution, String)
pub fn next_resolution_pending() -> (TopicResolution, String)
set to pending mode which means it is waiting for spu resources to be allocated
pub fn next_resolution_invalid_config( reason: impl Into<String> ) -> (TopicResolution, String)
pub fn set_next_resolution(&mut self, next: (TopicResolution, String))
Trait Implementations§
source§impl Clone for TopicStatus
impl Clone for TopicStatus
source§fn clone(&self) -> TopicStatus
fn clone(&self) -> TopicStatus
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 TopicStatus
impl Debug for TopicStatus
source§impl Decoder for TopicStatus
impl Decoder for TopicStatus
source§impl Default for TopicStatus
impl Default for TopicStatus
source§impl Display for TopicStatus
impl Display for TopicStatus
source§impl Encoder for TopicStatus
impl Encoder for TopicStatus
source§impl PartialEq for TopicStatus
impl PartialEq for TopicStatus
source§fn eq(&self, other: &TopicStatus) -> bool
fn eq(&self, other: &TopicStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TopicStatus
impl Status for TopicStatus
impl StructuralPartialEq for TopicStatus
Auto Trait Implementations§
impl Freeze for TopicStatus
impl RefUnwindSafe for TopicStatus
impl Send for TopicStatus
impl Sync for TopicStatus
impl Unpin for TopicStatus
impl UnwindSafe for TopicStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.