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: StringImplementations§
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 duplicate 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
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.