Struct sphinx_packet::route::NodeAddressBytes
source · pub struct NodeAddressBytes(_);Implementations§
source§impl NodeAddressBytes
impl NodeAddressBytes
pub fn as_base58_string(&self) -> String
pub fn try_from_base58_string<S: Into<String>>(val: S) -> Result<Self>
pub fn try_from_byte_slice(b: &[u8]) -> Result<Self>
pub fn from_bytes(b: [u8; 32]) -> Self
sourcepub fn as_bytes_ref(&self) -> &[u8; 32]
pub fn as_bytes_ref(&self) -> &[u8; 32]
View this NodeAddressBytes as an array of bytes.
Trait Implementations§
source§impl Clone for NodeAddressBytes
impl Clone for NodeAddressBytes
source§fn clone(&self) -> NodeAddressBytes
fn clone(&self) -> NodeAddressBytes
Returns a copy 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 NodeAddressBytes
impl Debug for NodeAddressBytes
source§impl Display for NodeAddressBytes
impl Display for NodeAddressBytes
source§impl Hash for NodeAddressBytes
impl Hash for NodeAddressBytes
source§impl PartialEq<NodeAddressBytes> for NodeAddressBytes
impl PartialEq<NodeAddressBytes> for NodeAddressBytes
source§fn eq(&self, other: &NodeAddressBytes) -> bool
fn eq(&self, other: &NodeAddressBytes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<NodeAddressBytes> for NodeAddressBytes
impl PartialOrd<NodeAddressBytes> for NodeAddressBytes
source§fn partial_cmp(&self, other: &NodeAddressBytes) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeAddressBytes) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more