Delete

Trait Delete 

Source
pub trait Delete: Sync + Send {
    // Required methods
    fn delete_config_item_gateway(
        &self,
        gateway_name: &str,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send;
    fn delete_config_item_route(
        &self,
        gateway_name: &str,
        route_name: &str,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send;
    fn delete_plugin(
        &self,
        id: &PluginInstanceId,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send;

    // Provided methods
    fn delete_config_item_all_routes(
        &self,
        gateway_name: &str,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
       where Self: Retrieve { ... }
    fn delete_config_item(
        &self,
        name: &str,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
       where Self: Retrieve { ... }
}

Required Methods§

Source

fn delete_config_item_gateway( &self, gateway_name: &str, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Source

fn delete_config_item_route( &self, gateway_name: &str, route_name: &str, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Source

fn delete_plugin( &self, id: &PluginInstanceId, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Provided Methods§

Source

fn delete_config_item_all_routes( &self, gateway_name: &str, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
where Self: Retrieve,

Source

fn delete_config_item( &self, name: &str, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
where Self: Retrieve,

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.

Implementors§

Source§

impl Delete for K8s

Source§

impl<F> Delete for Fs<F>
where F: ConfigFormat + Send + Sync,

Source§

impl<F> Delete for Redis<F>
where F: ConfigFormat + Send + Sync,