Struct fluvio_controlplane_metadata::topic::TopicStatus
source · [−]pub struct TopicStatus {
pub resolution: TopicResolution,
pub replica_map: BTreeMap<i32, Vec<i32>>,
pub reason: String,
}
Fields
resolution: TopicResolution
replica_map: BTreeMap<i32, Vec<i32>>
reason: String
Implementations
sourceimpl TopicStatus
impl TopicStatus
pub fn new<S>(
resolution: TopicResolution,
replica_map: Vec<Vec<i32>>,
reason: S
) -> Self where
S: Into<String>,
pub fn resolution(&self) -> &TopicResolution
pub fn replica_map_cnt(&self) -> i32
pub fn set_replica_map(&mut self, replica_map: ReplicaMap)
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
pub fn next_resolution_provisioned() -> (TopicResolution, String)
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<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
sourceimpl Clone for TopicStatus
impl Clone for TopicStatus
sourcefn clone(&self) -> TopicStatus
fn clone(&self) -> TopicStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TopicStatus
impl Debug for TopicStatus
sourceimpl Decoder for TopicStatus
impl Decoder for TopicStatus
sourceimpl Default for TopicStatus
impl Default for TopicStatus
sourceimpl Display for TopicStatus
impl Display for TopicStatus
sourceimpl Encoder for TopicStatus
impl Encoder for TopicStatus
sourceimpl PartialEq<TopicStatus> for TopicStatus
impl PartialEq<TopicStatus> for TopicStatus
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TopicStatus) -> bool
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more