Struct fluvio::metadata::topic::TopicStatus [−]
pub struct TopicStatus {
pub resolution: TopicResolution,
pub replica_map: BTreeMap<i32, Vec<i32, Global>>,
pub reason: String,
}
Fields
resolution: TopicResolution
replica_map: BTreeMap<i32, Vec<i32, Global>>
reason: String
Implementations
impl TopicStatus
impl TopicStatus
pub fn new<S>(
resolution: TopicResolution,
replica_map: Vec<Vec<i32, Global>, Global>,
reason: S
) -> TopicStatus where
S: Into<String>,
pub fn resolution(&self) -> &TopicResolution
pub fn replica_map_cnt(&self) -> i32
pub fn spus_in_replica(&self) -> Vec<i32, Global>
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
pub 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
pub fn next_resolution_provisioned() -> (TopicResolution, String)
pub 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<S>(reason: S) -> (TopicResolution, String) where
S: Into<String>,
pub fn set_resolution_no_resource<S>(reason: S) -> (TopicResolution, String) where
S: Into<String>,
pub fn set_next_resolution(&mut self, next: (TopicResolution, String))
Trait Implementations
impl Clone for TopicStatus
impl Clone for TopicStatus
pub fn clone(&self) -> TopicStatus
pub fn clone(&self) -> TopicStatus
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for TopicStatus
impl Debug for TopicStatus
impl Decoder for TopicStatus
impl Decoder for TopicStatus
impl Default for TopicStatus
impl Default for TopicStatus
pub fn default() -> TopicStatus
pub fn default() -> TopicStatus
Returns the “default value” for a type. Read more
impl Display for TopicStatus
impl Display for TopicStatus
impl Encoder for TopicStatus
impl Encoder for TopicStatus
impl PartialEq<TopicStatus> for TopicStatus
impl PartialEq<TopicStatus> for TopicStatus
pub fn eq(&self, other: &TopicStatus) -> bool
pub fn eq(&self, other: &TopicStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &TopicStatus) -> bool
pub fn ne(&self, other: &TopicStatus) -> bool
This method tests for !=
.
impl Status for TopicStatus
impl StructuralPartialEq for TopicStatus
Auto Trait Implementations
impl RefUnwindSafe for TopicStatus
impl Send for TopicStatus
impl Sync for TopicStatus
impl Unpin for TopicStatus
impl UnwindSafe for TopicStatus
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more