pub enum LinkSpecifier {
Ipv4 {
address: Ipv4Addr,
port: u16,
},
Ipv6 {
address: Ipv6Addr,
port: u16,
},
Fingerprint([u8; 20]),
Ed25519([u8; 32]),
Other {
link_type: u8,
value: Vec<u8>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LinkSpecifier
impl Clone for LinkSpecifier
Source§impl Debug for LinkSpecifier
impl Debug for LinkSpecifier
impl Eq for LinkSpecifier
Source§impl Hash for LinkSpecifier
impl Hash for LinkSpecifier
Source§impl PartialEq for LinkSpecifier
impl PartialEq for LinkSpecifier
Source§impl Serialize for LinkSpecifier
impl Serialize for LinkSpecifier
impl StructuralPartialEq for LinkSpecifier
Auto Trait Implementations§
impl Freeze for LinkSpecifier
impl RefUnwindSafe for LinkSpecifier
impl Send for LinkSpecifier
impl Sync for LinkSpecifier
impl Unpin for LinkSpecifier
impl UnsafeUnpin for LinkSpecifier
impl UnwindSafe for LinkSpecifier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere T: Clone,
impl<T> CloneToUninit for Twhere T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.