pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
Addresses,
}
Available on crate feature
key
only.Variants§
Id
Only the Node ID is added.
This usually means that iroh-dns discovery is used to find address information.
RelayAndAddresses
Includes the Node ID and both the relay URL, and the direct addresses.
Relay
Includes the Node ID and the relay URL.
Addresses
Includes the Node ID and the direct addresses.
Trait Implementations§
Source§impl Clone for AddrInfoOptions
impl Clone for AddrInfoOptions
Source§fn clone(&self) -> AddrInfoOptions
fn clone(&self) -> AddrInfoOptions
Returns a copy 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 AddrInfoOptions
impl Debug for AddrInfoOptions
Source§impl Default for AddrInfoOptions
impl Default for AddrInfoOptions
Source§fn default() -> AddrInfoOptions
fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddrInfoOptions
impl<'de> Deserialize<'de> for AddrInfoOptions
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 Display for AddrInfoOptions
impl Display for AddrInfoOptions
Source§impl FromStr for AddrInfoOptions
impl FromStr for AddrInfoOptions
Source§impl PartialEq for AddrInfoOptions
impl PartialEq for AddrInfoOptions
Source§impl Serialize for AddrInfoOptions
impl Serialize for AddrInfoOptions
impl Copy for AddrInfoOptions
impl Eq for AddrInfoOptions
impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
impl Freeze for AddrInfoOptions
impl RefUnwindSafe for AddrInfoOptions
impl Send for AddrInfoOptions
impl Sync for AddrInfoOptions
impl Unpin for AddrInfoOptions
impl UnwindSafe for AddrInfoOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)