pub struct QuickTunnelHandle {
pub url: String,
pub tunnel_id: Uuid,
pub account_tag: String,
pub location: String,
/* private fields */
}Fields§
§url: String§tunnel_id: Uuid§account_tag: String§location: StringEdge POP location of the first registered connection (e.g.
bog01). Additional HA connections may land in different
POPs; their locations are logged but not surfaced here.
Implementations§
Source§impl QuickTunnelHandle
impl QuickTunnelHandle
pub fn metrics(&self) -> TunnelMetrics
Sourcepub async fn shutdown_with(self, _grace: Duration) -> Result<(), TunnelError>
pub async fn shutdown_with(self, _grace: Duration) -> Result<(), TunnelError>
Signal every HA reactor to drain + unregister + close, then await them all.
pub async fn shutdown(self) -> Result<(), TunnelError>
Trait Implementations§
Source§impl Drop for QuickTunnelHandle
impl Drop for QuickTunnelHandle
Auto Trait Implementations§
impl Freeze for QuickTunnelHandle
impl RefUnwindSafe for QuickTunnelHandle
impl Send for QuickTunnelHandle
impl Sync for QuickTunnelHandle
impl Unpin for QuickTunnelHandle
impl UnsafeUnpin for QuickTunnelHandle
impl UnwindSafe for QuickTunnelHandle
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