pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<EndpointId, DecodingError>;
}Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
Required Methods§
Sourcefn to_z32(&self) -> String
fn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
Sourcefn from_z32(s: &str) -> Result<EndpointId, DecodingError>
fn from_z32(s: &str) -> Result<EndpointId, DecodingError>
Parses a EndpointId from z-base-32 encoding.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.