pub struct DiscoveredConnectionEndpointId(/* private fields */);Implementations§
Source§impl DiscoveredConnectionEndpointId
impl DiscoveredConnectionEndpointId
pub const fn from_bytes(bytes: [u8; 32]) -> DiscoveredConnectionEndpointId
pub const fn as_bytes(&self) -> &[u8; 32]
pub fn for_endpoint(host: &str, port: u16) -> DiscoveredConnectionEndpointId
Trait Implementations§
Source§impl Clone for DiscoveredConnectionEndpointId
impl Clone for DiscoveredConnectionEndpointId
Source§fn clone(&self) -> DiscoveredConnectionEndpointId
fn clone(&self) -> DiscoveredConnectionEndpointId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiscoveredConnectionEndpointId
impl Eq for DiscoveredConnectionEndpointId
Source§impl Ord for DiscoveredConnectionEndpointId
impl Ord for DiscoveredConnectionEndpointId
Source§fn cmp(&self, other: &DiscoveredConnectionEndpointId) -> Ordering
fn cmp(&self, other: &DiscoveredConnectionEndpointId) -> Ordering
1.21.0 (const: unstable) · 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 PartialOrd for DiscoveredConnectionEndpointId
impl PartialOrd for DiscoveredConnectionEndpointId
impl StructuralPartialEq for DiscoveredConnectionEndpointId
Auto Trait Implementations§
impl Freeze for DiscoveredConnectionEndpointId
impl RefUnwindSafe for DiscoveredConnectionEndpointId
impl Send for DiscoveredConnectionEndpointId
impl Sync for DiscoveredConnectionEndpointId
impl Unpin for DiscoveredConnectionEndpointId
impl UnsafeUnpin for DiscoveredConnectionEndpointId
impl UnwindSafe for DiscoveredConnectionEndpointId
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