pub trait Firewall:
Debug
+ Send
+ Sync {
// Provided methods
fn list_ingress_rules(
&self,
_req: ListIngressRulesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIngressRulesResponse>>> + Send { ... }
fn batch_update_ingress_rules(
&self,
_req: BatchUpdateIngressRulesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<BatchUpdateIngressRulesResponse>>> + Send { ... }
fn create_ingress_rule(
&self,
_req: CreateIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send { ... }
fn get_ingress_rule(
&self,
_req: GetIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send { ... }
fn update_ingress_rule(
&self,
_req: UpdateIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send { ... }
fn delete_ingress_rule(
&self,
_req: DeleteIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::Firewall.
Application developers may need to implement this trait to mock
client::Firewall. In other use-cases, application developers only
use client::Firewall and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn list_ingress_rules(
&self,
_req: ListIngressRulesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIngressRulesResponse>>> + Send
fn list_ingress_rules( &self, _req: ListIngressRulesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListIngressRulesResponse>>> + Send
Implements super::client::Firewall::list_ingress_rules.
Sourcefn batch_update_ingress_rules(
&self,
_req: BatchUpdateIngressRulesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<BatchUpdateIngressRulesResponse>>> + Send
fn batch_update_ingress_rules( &self, _req: BatchUpdateIngressRulesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchUpdateIngressRulesResponse>>> + Send
Sourcefn create_ingress_rule(
&self,
_req: CreateIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
fn create_ingress_rule( &self, _req: CreateIngressRuleRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
Implements super::client::Firewall::create_ingress_rule.
Sourcefn get_ingress_rule(
&self,
_req: GetIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
fn get_ingress_rule( &self, _req: GetIngressRuleRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
Implements super::client::Firewall::get_ingress_rule.
Sourcefn update_ingress_rule(
&self,
_req: UpdateIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
fn update_ingress_rule( &self, _req: UpdateIngressRuleRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FirewallRule>>> + Send
Implements super::client::Firewall::update_ingress_rule.
Sourcefn delete_ingress_rule(
&self,
_req: DeleteIngressRuleRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_ingress_rule( &self, _req: DeleteIngressRuleRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::Firewall::delete_ingress_rule.
Sourcefn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
Implements super::client::Firewall::list_operations.
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::Firewall::get_operation.
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.