pub struct RelayAddr {
pub target: Fingerprint,
pub relay: EndpointAddr,
pub path: String,
}Expand description
A parsed weida+relay://<peer>@[relay-key@]host[:port]/path address: the
endpoint path of the peer whose key is target, which serves through
the relay at relay.
QUIC and TLS run end to end between the dialler and the target; the relay only forwards datagrams, so the target’s key is part of the address.
Fields§
§target: FingerprintThe key of the peer the address reaches.
relay: EndpointAddrThe relay’s address; its path is always RELAY_PATH and its
peer is the relay’s key when the address names one.
path: StringThe endpoint path on the target.
Implementations§
Trait Implementations§
impl Eq for RelayAddr
impl StructuralPartialEq for RelayAddr
Auto Trait Implementations§
impl Freeze for RelayAddr
impl RefUnwindSafe for RelayAddr
impl Send for RelayAddr
impl Sync for RelayAddr
impl Unpin for RelayAddr
impl UnsafeUnpin for RelayAddr
impl UnwindSafe for RelayAddr
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