Skip to main content

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 + Sync + Send>>> + Send;
    fn delete_config_item_route(
        &self,
        gateway_name: &str,
        route_name: &str,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Sync + Send>>> + Send;
    fn delete_plugin(
        &self,
        id: &PluginInstanceId,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Sync + Send>>> + Send;

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

Required Methods§

Source

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

Source

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

Source

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

Provided Methods§

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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,