pub struct WordEncoder;Implementations§
Source§impl WordEncoder
impl WordEncoder
pub fn new() -> Self
pub fn encode_multiaddr_string( &self, multiaddr: &str, ) -> Result<FourWordAddress>
pub fn decode_to_socket_addr( &self, words: &FourWordAddress, ) -> Result<SocketAddr>
pub fn encode_socket_addr(&self, addr: &SocketAddr) -> Result<FourWordAddress>
Trait Implementations§
Source§impl Clone for WordEncoder
impl Clone for WordEncoder
Source§fn clone(&self) -> WordEncoder
fn clone(&self) -> WordEncoder
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 WordEncoder
impl Debug for WordEncoder
Auto Trait Implementations§
impl Freeze for WordEncoder
impl RefUnwindSafe for WordEncoder
impl Send for WordEncoder
impl Sync for WordEncoder
impl Unpin for WordEncoder
impl UnwindSafe for WordEncoder
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