pub struct Tunnel { /* private fields */ }Implementations§
Source§impl Tunnel
impl Tunnel
pub async fn new( config: Arc<ProxyConfig>, server_state: Arc<ServerState>, agent_tcp_stream: TcpStream, agent_socket_address: SocketAddr, ) -> Result<Self, CommonError>
pub async fn run(self) -> Result<(), CommonError>
Auto Trait Implementations§
impl !Freeze for Tunnel
impl !RefUnwindSafe for Tunnel
impl Send for Tunnel
impl Sync for Tunnel
impl Unpin for Tunnel
impl !UnwindSafe for Tunnel
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