pub struct QuickTunnelManager {
pub local_port: u16,
pub discovery_timeout: Duration,
pub service_url: String,
pub user_agent: String,
}Fields§
§local_port: u16§discovery_timeout: Duration§service_url: String§user_agent: StringImplementations§
Source§impl QuickTunnelManager
impl QuickTunnelManager
pub fn new(local_port: u16) -> Self
pub fn with_timeout(self, d: Duration) -> Self
pub fn with_service_url(self, url: impl Into<String>) -> Self
pub fn with_user_agent(self, ua: impl Into<String>) -> Self
pub async fn start(self) -> Result<QuickTunnelHandle, TunnelError>
Auto Trait Implementations§
impl Freeze for QuickTunnelManager
impl RefUnwindSafe for QuickTunnelManager
impl Send for QuickTunnelManager
impl Sync for QuickTunnelManager
impl Unpin for QuickTunnelManager
impl UnsafeUnpin for QuickTunnelManager
impl UnwindSafe for QuickTunnelManager
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