pub enum AddressDiscoveryConfig {
SendOnly,
ReceiveOnly,
SendAndReceive,
}
Expand description
Configuration for QUIC Address Discovery extension
Variants§
SendOnly
0: The node is willing to provide address observations to its peer, but is not interested in receiving address observations itself.
ReceiveOnly
1: The node is interested in receiving address observations, but it is not willing to provide address observations.
SendAndReceive
2: The node is interested in receiving address observations, and it is willing to provide address observations.
Implementations§
Trait Implementations§
Source§impl Clone for AddressDiscoveryConfig
impl Clone for AddressDiscoveryConfig
Source§fn clone(&self) -> AddressDiscoveryConfig
fn clone(&self) -> AddressDiscoveryConfig
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 AddressDiscoveryConfig
impl Debug for AddressDiscoveryConfig
Source§impl Default for AddressDiscoveryConfig
impl Default for AddressDiscoveryConfig
Source§fn default() -> AddressDiscoveryConfig
fn default() -> AddressDiscoveryConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for AddressDiscoveryConfig
impl PartialEq for AddressDiscoveryConfig
impl Copy for AddressDiscoveryConfig
impl Eq for AddressDiscoveryConfig
impl StructuralPartialEq for AddressDiscoveryConfig
Auto Trait Implementations§
impl Freeze for AddressDiscoveryConfig
impl RefUnwindSafe for AddressDiscoveryConfig
impl Send for AddressDiscoveryConfig
impl Sync for AddressDiscoveryConfig
impl Unpin for AddressDiscoveryConfig
impl UnwindSafe for AddressDiscoveryConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.