Struct fluvio::metadata::spu::SpuSpec[]

pub struct SpuSpec {
    pub id: i32,
    pub spu_type: SpuType,
    pub public_endpoint: IngressPort,
    pub private_endpoint: Endpoint,
    pub rack: Option<String>,
}

Fields

id: i32spu_type: SpuTypepublic_endpoint: IngressPortprivate_endpoint: Endpointrack: Option<String>

Implementations

impl SpuSpec

pub fn new(id: i32) -> SpuSpec

Given an Spu id generate a new SpuSpec

pub fn set_custom(self) -> SpuSpec

pub fn is_custom(&self) -> bool

Return custom type: true for custom, false otherwise

pub fn private_server_address(&self) -> ServerAddress

pub fn update(&mut self, other: &SpuSpec)

Trait Implementations

impl Clone for SpuSpec

impl Debug for SpuSpec

impl Decoder for SpuSpec

impl Default for SpuSpec

impl Display for SpuSpec

impl Encoder for SpuSpec

impl From<CustomSpuSpec> for SpuSpec

impl From<SpuSpec> for CustomSpuSpec

impl From<i32> for SpuSpec

impl ListSpec for SpuSpec[src]

type Filter = String

filter type

impl PartialEq<SpuSpec> for SpuSpec

impl Spec for SpuSpec

type IndexKey = String

type Owner = SpuSpec

type Status = SpuStatus

impl SpecExt for SpuSpec

impl StructuralPartialEq for SpuSpec

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]