pub struct WeakPathHandle { /* private fields */ }Expand description
Weak read-only handle to a QUIC connection path.
The handle can expose retained path state after the connection/path has closed without keeping the connection alive.
Implementations§
Source§impl WeakPathHandle
impl WeakPathHandle
Sourcepub fn upgrade(&self) -> Option<Path>
pub fn upgrade(&self) -> Option<Path>
Upgrade to a live path handle if the path’s connection is still alive.
Sourcepub fn is_alive(&self) -> bool
pub fn is_alive(&self) -> bool
Return true while the underlying path’s connection is still alive.
Sourcepub fn remote_address(&self) -> SocketAddr
pub fn remote_address(&self) -> SocketAddr
Return the retained or live peer UDP address associated with this path.
Sourcepub fn observed_external_addr(&self) -> Option<SocketAddr>
pub fn observed_external_addr(&self) -> Option<SocketAddr>
Return the retained or live external/reflexive address for this path.
Trait Implementations§
Source§impl Clone for WeakPathHandle
impl Clone for WeakPathHandle
Source§fn clone(&self) -> WeakPathHandle
fn clone(&self) -> WeakPathHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WeakPathHandle
impl !UnwindSafe for WeakPathHandle
impl Freeze for WeakPathHandle
impl Send for WeakPathHandle
impl Sync for WeakPathHandle
impl Unpin for WeakPathHandle
impl UnsafeUnpin for WeakPathHandle
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