pub struct RelayPathHint {
pub relay_endpoint_id: PeerId,
pub relay_locators: Vec<SocketAddr>,
pub observed_latency_ms: Option<u32>,
pub last_used: SystemTime,
}Expand description
A relay path hint for reaching a peer through an intermediary
When direct connections fail, relay paths provide alternative routes. This tracks known relays that can reach a given peer.
Fields§
§relay_endpoint_id: PeerIdEndpointId of the relay peer
relay_locators: Vec<SocketAddr>Known socket addresses for the relay
observed_latency_ms: Option<u32>Observed round-trip latency through this relay in milliseconds
last_used: SystemTimeWhen this relay path was last successfully used
Trait Implementations§
Source§impl Clone for RelayPathHint
impl Clone for RelayPathHint
Source§fn clone(&self) -> RelayPathHint
fn clone(&self) -> RelayPathHint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelayPathHint
impl Debug for RelayPathHint
Source§impl<'de> Deserialize<'de> for RelayPathHint
impl<'de> Deserialize<'de> for RelayPathHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RelayPathHint
impl RefUnwindSafe for RelayPathHint
impl Send for RelayPathHint
impl Sync for RelayPathHint
impl Unpin for RelayPathHint
impl UnsafeUnpin for RelayPathHint
impl UnwindSafe for RelayPathHint
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