Struct fluvio::metadata::spu::SpuStatus[]

pub struct SpuStatus {
    pub resolution: SpuStatusResolution,
}

Fields

resolution: SpuStatusResolution

Implementations

impl SpuStatus

pub fn offline() -> SpuStatus

create offline status

pub fn resolution_label(&self) -> &'static str

Resolution to string label

pub fn is_online(&self) -> bool

Checks if resoultion is marked online. true for online, false otherwise

pub fn is_offline(&self) -> bool

pub fn set_online(&mut self)

Set resolution to status to online

pub fn set_offline(&mut self)

Set resolution to status to offline

Trait Implementations

impl Clone for SpuStatus

impl Debug for SpuStatus

impl Decoder for SpuStatus

impl Default for SpuStatus

impl Display for SpuStatus

impl Encoder for SpuStatus

impl PartialEq<SpuStatus> for SpuStatus

impl Status for SpuStatus

impl StructuralPartialEq for SpuStatus

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]