pub struct ShadowTlsClient<LA, TA> { /* private fields */ }
Expand description
ShadowTlsClient.
Implementations§
Source§impl<LA, TA> ShadowTlsClient<LA, TA>
impl<LA, TA> ShadowTlsClient<LA, TA>
Sourcepub fn new(
listen_addr: LA,
target_addr: TA,
tls_names: TlsNames,
tls_ext_config: TlsExtConfig,
password: String,
nodelay: bool,
v3: V3Mode,
) -> Result<Self>
pub fn new( listen_addr: LA, target_addr: TA, tls_names: TlsNames, tls_ext_config: TlsExtConfig, password: String, nodelay: bool, v3: V3Mode, ) -> Result<Self>
Create new ShadowTlsClient.
Sourcepub async fn serve(self) -> Result<()>where
LA: ToSocketAddrs + 'static,
TA: ToSocketAddrs + 'static,
pub async fn serve(self) -> Result<()>where
LA: ToSocketAddrs + 'static,
TA: ToSocketAddrs + 'static,
Serve a raw connection.
Trait Implementations§
Source§impl<LA: Clone, TA: Clone> Clone for ShadowTlsClient<LA, TA>
impl<LA: Clone, TA: Clone> Clone for ShadowTlsClient<LA, TA>
Source§fn clone(&self) -> ShadowTlsClient<LA, TA>
fn clone(&self) -> ShadowTlsClient<LA, TA>
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 moreAuto Trait Implementations§
impl<LA, TA> Freeze for ShadowTlsClient<LA, TA>
impl<LA, TA> !RefUnwindSafe for ShadowTlsClient<LA, TA>
impl<LA, TA> Send for ShadowTlsClient<LA, TA>
impl<LA, TA> Sync for ShadowTlsClient<LA, TA>
impl<LA, TA> Unpin for ShadowTlsClient<LA, TA>
impl<LA, TA> !UnwindSafe for ShadowTlsClient<LA, TA>
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