pub struct TokioSingBoxCommandPort;Expand description
The production command boundary of the sing-box driver.
Trait Implementations§
Source§impl Clone for TokioSingBoxCommandPort
impl Clone for TokioSingBoxCommandPort
impl Copy for TokioSingBoxCommandPort
Source§impl Debug for TokioSingBoxCommandPort
impl Debug for TokioSingBoxCommandPort
Source§impl Default for TokioSingBoxCommandPort
impl Default for TokioSingBoxCommandPort
Source§impl SingBoxCommandPort for TokioSingBoxCommandPort
impl SingBoxCommandPort for TokioSingBoxCommandPort
Source§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 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.Source§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,
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.
Auto Trait Implementations§
impl Forget for TokioSingBoxCommandPort
impl Freeze for TokioSingBoxCommandPort
impl Move for TokioSingBoxCommandPort
impl RefUnwindSafe for TokioSingBoxCommandPort
impl Send for TokioSingBoxCommandPort
impl Sync for TokioSingBoxCommandPort
impl Unpin for TokioSingBoxCommandPort
impl UnsafeUnpin for TokioSingBoxCommandPort
impl UnwindSafe for TokioSingBoxCommandPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more