pub struct TcpWarpClient { /* private fields */ }
Implementations§
Source§impl TcpWarpClient
impl TcpWarpClient
pub fn new(bind_address: IpAddr, tunnel_address: SocketAddr) -> Self
pub async fn connect( &self, addresses: Vec<TcpWarpPortConnection>, ) -> Result<(HashMap<Uuid, TcpWarpConnection>, Arc<Vec<TcpWarpPortConnection>>), Box<dyn Error>>
pub async fn connect_loop( &self, retry_delay: Duration, keep_connections: bool, addresses: Arc<Vec<TcpWarpPortConnection>>, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for TcpWarpClient
impl RefUnwindSafe for TcpWarpClient
impl Send for TcpWarpClient
impl Sync for TcpWarpClient
impl Unpin for TcpWarpClient
impl UnwindSafe for TcpWarpClient
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