EndpointIdExt

Trait EndpointIdExt 

Source
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§

Source

fn to_z32(&self) -> String

Encodes a EndpointId in z-base-32 encoding.

Source

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.

Implementations on Foreign Types§

Source§

impl EndpointIdExt for EndpointId

Implementors§