pub struct TunnelHandle {
pub udid: String,
pub info: TunnelInfo,
pub userspace_port: Option<u16>,
/* private fields */
}Expand description
A live tunnel handle. Dropping this handle signals the tunnel task to stop.
Fields§
§udid: String§info: TunnelInfo§userspace_port: Option<u16>Implementations§
Source§impl TunnelHandle
impl TunnelHandle
pub fn new( udid: String, info: TunnelInfo, userspace_port: Option<u16>, ) -> (Self, Receiver<()>)
pub fn new_userspace( udid: String, info: TunnelInfo, runtime: UserspaceTunDevice, ) -> Self
pub fn is_alive(&self) -> bool
Auto Trait Implementations§
impl Freeze for TunnelHandle
impl RefUnwindSafe for TunnelHandle
impl Send for TunnelHandle
impl Sync for TunnelHandle
impl Unpin for TunnelHandle
impl UnsafeUnpin for TunnelHandle
impl UnwindSafe for TunnelHandle
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