pub struct Path { /* private fields */ }Expand description
Read-only handle to a QUIC connection path.
Path does not keep the underlying connection alive. Accessors read live
state while the connection exists and fall back to the retained snapshot
after the connection/path has gone away.
Implementations§
Source§impl Path
impl Path
Sourcepub fn remote_address(&self) -> SocketAddr
pub fn remote_address(&self) -> SocketAddr
Return the 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 external/reflexive address observed for this path.
Sourcepub fn weak_handle(&self) -> WeakPathHandle
pub fn weak_handle(&self) -> WeakPathHandle
Downgrade this path to a weak handle.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Path
impl !UnwindSafe for Path
impl Freeze for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
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