pub struct DirectConnector;Expand description
Connector that makes direct TCP connections.
Implementations§
Source§impl DirectConnector
impl DirectConnector
pub async fn connect_with_options( &self, target: &TargetAddr, options: &ConnectOptions, ) -> Result<BoxStream, ConnectError>
Trait Implementations§
Source§impl Connector for DirectConnector
impl Connector for DirectConnector
async fn connect(&self, target: &TargetAddr) -> Result<BoxStream, ConnectError>
Auto Trait Implementations§
impl Freeze for DirectConnector
impl RefUnwindSafe for DirectConnector
impl Send for DirectConnector
impl Sync for DirectConnector
impl Unpin for DirectConnector
impl UnsafeUnpin for DirectConnector
impl UnwindSafe for DirectConnector
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