pub struct DiscoveryEndpoint { /* private fields */ }Implementations§
Source§impl DiscoveryEndpoint
impl DiscoveryEndpoint
pub fn tcp( address: SocketAddr, ) -> Result<DiscoveryEndpoint, DiscoveryEndpointError>
pub fn udp( address: SocketAddr, ) -> Result<DiscoveryEndpoint, DiscoveryEndpointError>
pub const fn transport(self) -> DiscoveryTransport
pub const fn socket_addr(self) -> SocketAddr
pub const fn ip(self) -> IpAddr
Trait Implementations§
Source§impl Clone for DiscoveryEndpoint
impl Clone for DiscoveryEndpoint
Source§fn clone(&self) -> DiscoveryEndpoint
fn clone(&self) -> DiscoveryEndpoint
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 DiscoveryEndpoint
Source§impl Debug for DiscoveryEndpoint
impl Debug for DiscoveryEndpoint
Source§impl Display for DiscoveryEndpoint
impl Display for DiscoveryEndpoint
impl Eq for DiscoveryEndpoint
Source§impl Hash for DiscoveryEndpoint
impl Hash for DiscoveryEndpoint
Source§impl Ord for DiscoveryEndpoint
impl Ord for DiscoveryEndpoint
Source§fn cmp(&self, other: &DiscoveryEndpoint) -> Ordering
fn cmp(&self, other: &DiscoveryEndpoint) -> 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 PartialEq for DiscoveryEndpoint
impl PartialEq for DiscoveryEndpoint
Source§impl PartialOrd for DiscoveryEndpoint
impl PartialOrd for DiscoveryEndpoint
impl StructuralPartialEq for DiscoveryEndpoint
Source§impl TryFrom<(DiscoveryTransport, SocketAddr)> for DiscoveryEndpoint
impl TryFrom<(DiscoveryTransport, SocketAddr)> for DiscoveryEndpoint
Source§type Error = DiscoveryEndpointError
type Error = DiscoveryEndpointError
The type returned in the event of a conversion error.
Source§fn try_from(
_: (DiscoveryTransport, SocketAddr),
) -> Result<DiscoveryEndpoint, <DiscoveryEndpoint as TryFrom<(DiscoveryTransport, SocketAddr)>>::Error>
fn try_from( _: (DiscoveryTransport, SocketAddr), ) -> Result<DiscoveryEndpoint, <DiscoveryEndpoint as TryFrom<(DiscoveryTransport, SocketAddr)>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DiscoveryEndpoint
impl RefUnwindSafe for DiscoveryEndpoint
impl Send for DiscoveryEndpoint
impl Sync for DiscoveryEndpoint
impl Unpin for DiscoveryEndpoint
impl UnsafeUnpin for DiscoveryEndpoint
impl UnwindSafe for DiscoveryEndpoint
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