pub struct Connector { /* private fields */ }Expand description
Connector
Implementations§
Source§impl Connector
impl Connector
Sourcepub async fn connect_with_addr<S: Into<SocketAddr>>(
&self,
addr: S,
) -> Result<Socket>
pub async fn connect_with_addr<S: Into<SocketAddr>>( &self, addr: S, ) -> Result<Socket>
Connect to a remote endpoint with addr
Sourcepub async fn connect_with_uri(&self, target: &Uri) -> Result<Socket>
pub async fn connect_with_uri(&self, target: &Uri) -> Result<Socket>
Connect to a remote endpoint with url
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnwindSafe for Connector
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