Struct fluvio_stream_dispatcher::store::StoreContext [−][src]
pub struct StoreContext<S, MetaContext = K8MetaItem> where
S: Spec,
MetaContext: MetadataItem + Debug, { /* fields omitted */ }
Implementations
impl<S, MetaContext> StoreContext<S, MetaContext> where
S: Spec + PartialEq,
MetaContext: MetadataItem,
impl<S, MetaContext> StoreContext<S, MetaContext> where
S: Spec + PartialEq,
MetaContext: MetadataItem,
pub async fn apply(
&self,
input: MetadataStoreObject<S, MetaContext>
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
pub async fn apply(
&self,
input: MetadataStoreObject<S, MetaContext>
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
Wait for the termination of the apply action object, this is similar to kubectl apply
pub async fn create_spec(
&self,
key: S::IndexKey,
spec: S
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
pub async fn create_spec(
&self,
key: S::IndexKey,
spec: S
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
Wait for creation/update of spec. There is no guarantee that this spec has been applied. Only that spec has been changed.
This should only used in the imperative code such as API Server where confirmation is needed.
Controller should only use Action.
pub async fn update_status(
&self,
key: S::IndexKey,
status: S::Status
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
pub async fn update_status(
&self,
key: S::IndexKey,
status: S::Status
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
Wait for status update. There is no guarantee that this status valus has been applied. Only that status has been changed.
This should only used in the imperative code such as API Server where confirmation is needed.
Controller should only use Action.
Wait for object deletion.
This should only used in the imperative code such as API Server where confirmation is needed.
Controller should only use Action.
pub async fn wait_action(
&self,
key: &S::IndexKey,
action: WSAction<S, MetaContext>
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
pub async fn wait_action(
&self,
key: &S::IndexKey,
action: WSAction<S, MetaContext>
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
Wait for action to finish with default duration
pub async fn wait_action_with_timeout(
&self,
key: &S::IndexKey,
action: WSAction<S, MetaContext>,
timeout: Duration
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
pub async fn wait_action_with_timeout(
&self,
key: &S::IndexKey,
action: WSAction<S, MetaContext>,
timeout: Duration
) -> Result<MetadataStoreObject<S, MetaContext>, IoError> where
S::IndexKey: Display,
Wait for action to finish. There is no guarantee that the status valus has been applied. Only that status has been changed.
This should only used in the imperative code such as API Server where confirmation is needed.
Controller should only use Action.
send action
Trait Implementations
impl<S: Clone, MetaContext: Clone> Clone for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem + Debug,
impl<S: Clone, MetaContext: Clone> Clone for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem + Debug,
impl<S: Debug, MetaContext: Debug> Debug for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem + Debug,
impl<S: Debug, MetaContext: Debug> Debug for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem + Debug,
impl<S, MetaContext> Default for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem,
impl<S, MetaContext> Default for StoreContext<S, MetaContext> where
S: Spec,
MetaContext: MetadataItem,
Auto Trait Implementations
impl<S, MetaContext = K8MetaItem> !RefUnwindSafe for StoreContext<S, MetaContext>
impl<S, MetaContext> Send for StoreContext<S, MetaContext> where
MetaContext: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
impl<S, MetaContext> Sync for StoreContext<S, MetaContext> where
MetaContext: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
impl<S, MetaContext> Unpin for StoreContext<S, MetaContext>
impl<S, MetaContext = K8MetaItem> !UnwindSafe for StoreContext<S, MetaContext>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more