Struct fluvio::metadata::topic::TopicStatus
source · pub struct TopicStatus {
pub resolution: TopicResolution,
pub replica_map: BTreeMap<u32, Vec<i32>>,
pub reason: String,
}
Fields§
§resolution: TopicResolution
§replica_map: BTreeMap<u32, Vec<i32>>
§reason: String
Implementations§
source§impl TopicStatus
impl TopicStatus
pub fn new( resolution: TopicResolution, replica_map: Vec<Vec<i32>>, reason: impl Into<String> ) -> TopicStatus
pub fn resolution(&self) -> &TopicResolution
pub fn replica_map_cnt(&self) -> i32
pub fn set_replica_map(&mut self, replica_map: BTreeMap<u32, Vec<i32>>)
pub fn spus_in_replica(&self) -> Vec<i32>
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§fn default() -> TopicStatus
fn default() -> TopicStatus
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TopicStatus
impl<'de> Deserialize<'de> for TopicStatus
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TopicStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TopicStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 ==
.source§impl Serialize for TopicStatus
impl Serialize for TopicStatus
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
impl Eq for TopicStatus
impl Status 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.