Trait Handler

Source
pub trait Handler: Send {
Show 20 methods // Provided methods fn dns_start<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn dns_stop<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn forward<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _target: &'life1 str, _msg: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } fn reboot<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn reload_config<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn update_config<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn reload_ti<'life0, 'life1, 'async_trait>( &'life0 mut self, _version: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn resource_usage<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(String, ResourceUsage), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn tor_exit_node_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _nodes: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } fn trusted_domain_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _domains: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } fn sampling_policy_list<'life0, 'life1, 'async_trait>( &'life0 mut self, _policies: &'life1 [SamplingPolicy], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn update_traffic_filter_rules<'life0, 'life1, 'async_trait>( &'life0 mut self, _rules: &'life1 [TrafficFilterRule], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn delete_sampling_policy<'life0, 'life1, 'async_trait>( &'life0 mut self, _policies_ids: &'life1 [u32], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn internal_network_list<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn allowlist<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn blocklist<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn trusted_user_agent_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _list: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } fn process_list<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Process>, String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn update_semi_supervised_models<'life0, 'life1, 'async_trait>( &'life0 mut self, _list: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn shutdown<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... }
}
Expand description

A request handler that can handle a request to an agent.

Provided Methods§

Source

fn dns_start<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn dns_stop<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn forward<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _target: &'life1 str, _msg: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn reboot<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reboots the system

Source

fn reload_config<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

👎Deprecated since 0.4.1: Use update_config instead
Source

fn update_config<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn reload_ti<'life0, 'life1, 'async_trait>( &'life0 mut self, _version: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn resource_usage<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(String, ResourceUsage), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the hostname and the cpu, memory, and disk usage.

Source

fn tor_exit_node_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _nodes: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn trusted_domain_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _domains: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn sampling_policy_list<'life0, 'life1, 'async_trait>( &'life0 mut self, _policies: &'life1 [SamplingPolicy], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Updates the list of sampling policies.

Source

fn update_traffic_filter_rules<'life0, 'life1, 'async_trait>( &'life0 mut self, _rules: &'life1 [TrafficFilterRule], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_sampling_policy<'life0, 'life1, 'async_trait>( &'life0 mut self, _policies_ids: &'life1 [u32], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn internal_network_list<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn allowlist<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn blocklist<'life0, 'async_trait>( &'life0 mut self, _list: HostNetworkGroup, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn trusted_user_agent_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _list: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn process_list<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Process>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_semi_supervised_models<'life0, 'life1, 'async_trait>( &'life0 mut self, _list: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn shutdown<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§