pub struct QuickTunnelManager {
pub local_port: u16,
pub discovery_timeout: Duration,
pub service_url: String,
pub user_agent: String,
pub ha_connections: u8,
}Fields§
§local_port: u16§discovery_timeout: Duration§service_url: String§user_agent: String§ha_connections: u8Implementations§
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
Sourcepub fn with_ha_connections(self, n: u8) -> Self
pub fn with_ha_connections(self, n: u8) -> Self
Number of parallel QUIC connections to keep registered with
the edge. Clamped to 1..=MAX_HA_CONNECTIONS. Default is
DEFAULT_HA_CONNECTIONS (2) — masks a single-POP drop
without doubling tunnel cost.
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