pub struct TransportSettings { /* private fields */ }Implementations§
Source§impl TransportSettings
impl TransportSettings
pub fn new( stream_settings: StreamSettings, server_addr: &Address, ) -> Result<Self>
pub fn get_connect_opts(&self) -> &ConnectOpts
pub async fn connect_tcp( &self, server_addr: &SocketAddr, xtls: bool, ) -> Result<Box<dyn ProxyStream>>
pub async fn bind( &self, server_addr: &SocketAddr, ) -> Result<Box<dyn ProxySocket>>
Trait Implementations§
Source§impl Clone for TransportSettings
impl Clone for TransportSettings
Source§fn clone(&self) -> TransportSettings
fn clone(&self) -> TransportSettings
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 moreAuto Trait Implementations§
impl !Freeze for TransportSettings
impl !RefUnwindSafe for TransportSettings
impl Send for TransportSettings
impl Sync for TransportSettings
impl Unpin for TransportSettings
impl !UnwindSafe for TransportSettings
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