pub struct RelayRoute {
pub relay_addr: Box<PeerAddr>,
pub slot_id: u64,
}Expand description
Routing information for reaching a peer via a relay node.
When a firewalled node registers a relay slot on a public relay,
it advertises itself with a PeerAddr containing relay_via.
Connectors that encounter this field connect to the relay address
and tunnel requests through the relay slot.
Fields§
§relay_addr: Box<PeerAddr>Address of the relay node that holds the tunnel.
slot_id: u64The relay slot ID assigned during RelayRegister.
Trait Implementations§
Source§impl Clone for RelayRoute
impl Clone for RelayRoute
Source§fn clone(&self) -> RelayRoute
fn clone(&self) -> RelayRoute
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 RelayRoute
impl Debug for RelayRoute
Source§impl<'de> Deserialize<'de> for RelayRoute
impl<'de> Deserialize<'de> for RelayRoute
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
Source§impl PartialEq for RelayRoute
impl PartialEq for RelayRoute
Source§impl Serialize for RelayRoute
impl Serialize for RelayRoute
impl Eq for RelayRoute
impl StructuralPartialEq for RelayRoute
Auto Trait Implementations§
impl Freeze for RelayRoute
impl RefUnwindSafe for RelayRoute
impl Send for RelayRoute
impl Sync for RelayRoute
impl Unpin for RelayRoute
impl UnsafeUnpin for RelayRoute
impl UnwindSafe for RelayRoute
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