pub trait SingBoxCommandPort: Send + Sync {
// Required methods
fn check_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<NativeConfigCheck, PortError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn spawn_core<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn SingBoxChildProcess>, PortError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
The injectable command boundary of the sing-box driver.
Required Methods§
Sourcefn check_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<NativeConfigCheck, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<NativeConfigCheck, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Runs the native check transaction of the selected binary.
Sourcefn spawn_core<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn SingBoxChildProcess>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn spawn_core<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binary_path: &'life1 Path,
config_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn SingBoxChildProcess>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Starts the sing-box core with the selected configuration.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".