[][src]Struct fluvio_stream_dispatcher::dispatcher::K8WSUpdateService

pub struct K8WSUpdateService<C, S> { /* fields omitted */ }

Implementations

impl<C, S> K8WSUpdateService<C, S> where
    C: MetadataClient,
    S: K8ExtendedSpec + Into<<S as K8ExtendedSpec>::K8Spec>,
    <S as Spec>::Owner: K8ExtendedSpec,
    S::Status: PartialEq + Display + Into<<<S as K8ExtendedSpec>::K8Spec as K8Spec>::Status>,
    S::IndexKey: Display,
    <S as K8ExtendedSpec>::K8Spec: DeserializeOwned + Serialize + Send + Sync
[src]

pub fn new(client: SharedClient<C>) -> Self[src]

pub async fn apply<'_>(
    &'_ self,
    value: MetadataStoreObject<S, K8MetaItem>
) -> Result<(), C::MetadataClientError>
[src]

add/update

pub async fn update_status<'_>(
    &'_ self,
    metadata: K8MetaItem,
    status: S::Status
) -> Result<K8Obj<S::K8Spec>, C::MetadataClientError>
[src]

only update the status

pub async fn update_spec<'_>(
    &'_ self,
    metadata: K8MetaItem,
    spec: S
) -> Result<(), C::MetadataClientError>
[src]

update spec only

pub async fn delete<'_>(
    &'_ self,
    meta: K8MetaItem
) -> Result<(), C::MetadataClientError>
[src]

Auto Trait Implementations

impl<C, S> RefUnwindSafe for K8WSUpdateService<C, S> where
    C: RefUnwindSafe,
    S: RefUnwindSafe

impl<C, S> Send for K8WSUpdateService<C, S> where
    C: Send + Sync,
    S: Send

impl<C, S> Sync for K8WSUpdateService<C, S> where
    C: Send + Sync,
    S: Sync

impl<C, S> Unpin for K8WSUpdateService<C, S> where
    S: Unpin

impl<C, S> UnwindSafe for K8WSUpdateService<C, S> where
    C: RefUnwindSafe,
    S: UnwindSafe

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> 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, 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]