pub struct ClientSocket(pub TcpSocket);
Tuple Fields§
§0: TcpSocket
Implementations§
Source§impl ClientSocket
impl ClientSocket
pub fn configure_tls( &self, config: Arc<ClientConfig>, server_name: &str, ) -> Result<ClientConnection>
pub async fn connect( self, ip: IpAddr, port: u16, cc: Option<ClientConnection>, ) -> Result<ClientStream>
Auto Trait Implementations§
impl Freeze for ClientSocket
impl RefUnwindSafe for ClientSocket
impl Send for ClientSocket
impl Sync for ClientSocket
impl Unpin for ClientSocket
impl UnwindSafe for ClientSocket
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