pub trait KubeOperations<T, K>where
T: Resource + ResourceExt + Lookup + Clone + 'static,
<T as Lookup>::DynamicType: Eq + Hash + Clone,
K: Resource<Scope = NamespaceResourceScope> + Serialize + Clone + Debug + for<'de> Deserialize<'de>,
<K as Resource>::DynamicType: Default,
<K as Resource>::Scope: Sized,{
// Required methods
async fn kube_delete(
&self,
client: Client,
metrics: &ControllerMetrics,
obj: &K,
) -> Result<()>;
async fn kube_patch(
&self,
client: Client,
metrics: &ControllerMetrics,
obj: K,
operator_name: &str,
) -> Result<K>;
}Required Methods§
async fn kube_delete( &self, client: Client, metrics: &ControllerMetrics, obj: &K, ) -> Result<()>
async fn kube_patch( &self, client: Client, metrics: &ControllerMetrics, obj: K, operator_name: &str, ) -> Result<K>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.