pub struct EndpointAddr {
pub bytes: [u8; 16],
}Fields§
§bytes: [u8; 16]Implementations§
Source§impl EndpointAddr
impl EndpointAddr
pub fn new_snowflake() -> Self
pub fn hash64(&self) -> u64
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EndpointAddr
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EndpointAddr
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EndpointAddr
impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
fn clone(&self) -> EndpointAddr
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 EndpointAddr
impl Debug for EndpointAddr
Source§impl<__Context> Decode<__Context> for EndpointAddr
impl<__Context> Decode<__Context> for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for EndpointAddr
impl Encode for EndpointAddr
Source§impl From<EndpointAddr> for [u8; 16]
impl From<EndpointAddr> for [u8; 16]
Source§fn from(val: EndpointAddr) -> Self
fn from(val: EndpointAddr) -> Self
Converts to this type from the input type.
Source§impl Hash for EndpointAddr
impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
fn cmp(&self, other: &EndpointAddr) -> 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 for EndpointAddr
impl PartialEq for EndpointAddr
Source§impl PartialOrd for EndpointAddr
impl PartialOrd for EndpointAddr
Source§impl Serialize for EndpointAddr
impl Serialize for EndpointAddr
impl Copy for EndpointAddr
impl Eq for EndpointAddr
impl StructuralPartialEq for EndpointAddr
Auto Trait Implementations§
impl Freeze for EndpointAddr
impl RefUnwindSafe for EndpointAddr
impl Send for EndpointAddr
impl Sync for EndpointAddr
impl Unpin for EndpointAddr
impl UnwindSafe for EndpointAddr
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