[][src]Struct fluvio_sc::stores::StoreContext

pub struct StoreContext<S> where
    S: Spec
{ /* fields omitted */ }

Implementations

impl<S> StoreContext<S> where
    S: Spec
[src]

pub fn new() -> StoreContext<S>[src]

pub async fn send(
    &'_ mut self,
    actions: Vec<WSAction<S>, Global>
) -> Result<(), SendError<WSAction<S>>>
[src]

pub fn change_listener(&self) -> ChangeListener<S, K8MetaItem>[src]

create new listener

pub fn store(&self) -> &Arc<LocalStore<S, K8MetaItem>>[src]

pub fn receiver(&self) -> Receiver<WSAction<S>>[src]

impl<S> StoreContext<S> where
    S: Spec + PartialEq<S>, 
[src]

pub async fn create_spec(
    &'_ self,
    key: <S as Spec>::IndexKey,
    spec: S
) -> Result<MetadataStoreObject<S, K8MetaItem>, Error> where
    <S as Spec>::IndexKey: Display
[src]

wait for creation of new metadata there is 5 second time out

pub async fn delete(&'_ self, key: <S as Spec>::IndexKey) -> Result<(), Error>[src]

wait for delete of metadata object there is 5 second time out

pub async fn send_action(&'_ self, action: WSAction<S>)[src]

send action

Trait Implementations

impl<S> Clone for StoreContext<S> where
    S: Clone + Spec
[src]

impl<S> Debug for StoreContext<S> where
    S: Debug + Spec
[src]

impl<S> Default for StoreContext<S> where
    S: Spec
[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for StoreContext<S>[src]

impl<S> Send for StoreContext<S> where
    S: Send + Sync,
    <S as Spec>::IndexKey: Send + Sync,
    <S as Spec>::Status: Send + Sync
[src]

impl<S> Sync for StoreContext<S> where
    S: Send + Sync,
    <S as Spec>::IndexKey: Send + Sync,
    <S as Spec>::Status: Send + Sync
[src]

impl<S> Unpin for StoreContext<S>[src]

impl<S> !UnwindSafe for StoreContext<S>[src]

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]