pub struct TrojanOutbound { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for TrojanOutbound
impl Clone for TrojanOutbound
Source§fn clone(&self) -> TrojanOutbound
fn clone(&self) -> TrojanOutbound
Returns a duplicate 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 TrojanOutbound
impl Debug for TrojanOutbound
Source§impl Outbound for TrojanOutbound
impl Outbound for TrojanOutbound
fn protocol(&self) -> OutboundProtocolOption
fn pre_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
dns: &'life1 DnsManager,
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Outbound>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect_tcp<'life0, 'async_trait>(
&'life0 self,
addr: Address,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ProxyStream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bind<'life0, 'async_trait>(
&'life0 self,
_peer: SocketAddr,
target: Address,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ProxySocket>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for TrojanOutbound
impl !RefUnwindSafe for TrojanOutbound
impl Send for TrojanOutbound
impl Sync for TrojanOutbound
impl Unpin for TrojanOutbound
impl !UnwindSafe for TrojanOutbound
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