#[non_exhaustive]pub enum EndpointId {
Ed25519(PublicKey),
}Available on crate feature
key only.Expand description
The identifier for an endpoint in the (iroh) network.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl EndpointId
impl EndpointId
Trait Implementations§
Source§impl Clone for EndpointId
impl Clone for EndpointId
Source§fn clone(&self) -> EndpointId
fn clone(&self) -> EndpointId
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 EndpointId
impl Debug for EndpointId
Source§impl<'de> Deserialize<'de> for EndpointId
impl<'de> Deserialize<'de> for EndpointId
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 EndpointId
impl Display for EndpointId
Source§impl From<EndpointId> for EndpointAddr
impl From<EndpointId> for EndpointAddr
Source§fn from(endpoint_id: EndpointId) -> Self
fn from(endpoint_id: EndpointId) -> Self
Converts to this type from the input type.
Source§impl From<PublicKey> for EndpointId
impl From<PublicKey> for EndpointId
Source§impl Hash for EndpointId
impl Hash for EndpointId
Source§impl Ord for EndpointId
impl Ord for EndpointId
Source§fn cmp(&self, other: &EndpointId) -> Ordering
fn cmp(&self, other: &EndpointId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<PublicKey> for EndpointId
impl PartialEq<PublicKey> for EndpointId
Source§impl PartialEq for EndpointId
impl PartialEq for EndpointId
Source§impl PartialOrd for EndpointId
impl PartialOrd for EndpointId
Source§impl Serialize for EndpointId
impl Serialize for EndpointId
impl Copy for EndpointId
impl Eq for EndpointId
impl StructuralPartialEq for EndpointId
Auto Trait Implementations§
impl Freeze for EndpointId
impl RefUnwindSafe for EndpointId
impl Send for EndpointId
impl Sync for EndpointId
impl Unpin for EndpointId
impl UnwindSafe for EndpointId
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