pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}Expand description
Addressing information to connect to a peer.
Fields§
§relay_url: Option<RelayUrl>The peer’s home relay url.
direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
Implementations§
source§impl AddrInfo
impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Apply the options to self.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
impl<'de> Deserialize<'de> for AddrInfo
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 AddrInfo
impl PartialEq for AddrInfo
impl Eq for AddrInfo
impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
impl Freeze for AddrInfo
impl RefUnwindSafe for AddrInfo
impl Send for AddrInfo
impl Sync for AddrInfo
impl Unpin for AddrInfo
impl UnwindSafe for AddrInfo
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