pub struct ProxyRunner;
Expand description
The proxy runner
Trait Implementations§
Source§impl Clone for ProxyRunner
impl Clone for ProxyRunner
Source§fn clone(&self) -> ProxyRunner
fn clone(&self) -> ProxyRunner
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProxyRunner
impl Debug for ProxyRunner
Source§impl Runner for ProxyRunner
impl Runner for ProxyRunner
Source§fn initialize_proxy<'async_trait, Listener>(
config: ProxyConfig,
initial_toxics: Toxics,
) -> Pin<Box<dyn Future<Output = Result<(Listener, SharedProxyInfo)>> + Send + 'async_trait>>where
Listener: SocketListener + 'static + 'async_trait,
fn initialize_proxy<'async_trait, Listener>(
config: ProxyConfig,
initial_toxics: Toxics,
) -> Pin<Box<dyn Future<Output = Result<(Listener, SharedProxyInfo)>> + Send + 'async_trait>>where
Listener: SocketListener + 'static + 'async_trait,
Initialize a proxy, bind to a TCP port but don’t start accepting clients
Source§fn run_proxy<'async_trait, Listener>(
listener: Listener,
proxy_info: SharedProxyInfo,
receiver: RequestReceiver<ToxicEvent, ToxicEventResult>,
stop: Stop,
closer: Closer,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Listener: SocketListener + 'static + 'async_trait,
fn run_proxy<'async_trait, Listener>(
listener: Listener,
proxy_info: SharedProxyInfo,
receiver: RequestReceiver<ToxicEvent, ToxicEventResult>,
stop: Stop,
closer: Closer,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Listener: SocketListener + 'static + 'async_trait,
Run the initialized proxy, accept clients, establish links
impl Copy for ProxyRunner
Auto Trait Implementations§
impl Freeze for ProxyRunner
impl RefUnwindSafe for ProxyRunner
impl Send for ProxyRunner
impl Sync for ProxyRunner
impl Unpin for ProxyRunner
impl UnwindSafe for ProxyRunner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)