pub enum EndpointAddr {
Socket(SocketEndpointAddr),
Ble(BleEndpontAddr),
}
Variants§
Socket(SocketEndpointAddr)
Ble(BleEndpontAddr)
Implementations§
Trait Implementations§
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<'de> Deserialize<'de> for EndpointAddr
impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EndpointAddr
impl Display for EndpointAddr
Source§impl From<(SocketAddr, SocketAddr)> for EndpointAddr
impl From<(SocketAddr, SocketAddr)> for EndpointAddr
Source§fn from(_: (SocketAddr, SocketAddr)) -> EndpointAddr
fn from(_: (SocketAddr, SocketAddr)) -> EndpointAddr
Converts to this type from the input type.
Source§impl From<BleEndpontAddr> for EndpointAddr
impl From<BleEndpontAddr> for EndpointAddr
Source§fn from(value: BleEndpontAddr) -> EndpointAddr
fn from(value: BleEndpontAddr) -> EndpointAddr
Converts to this type from the input type.
Source§impl From<RealAddr> for EndpointAddr
impl From<RealAddr> for EndpointAddr
Source§fn from(addr: RealAddr) -> EndpointAddr
fn from(addr: RealAddr) -> EndpointAddr
Converts to this type from the input type.
Source§impl From<SocketAddr> for EndpointAddr
impl From<SocketAddr> for EndpointAddr
Source§fn from(addr: SocketAddr) -> EndpointAddr
fn from(addr: SocketAddr) -> EndpointAddr
Converts to this type from the input type.
Source§impl From<SocketEndpointAddr> for EndpointAddr
impl From<SocketEndpointAddr> for EndpointAddr
Source§fn from(value: SocketEndpointAddr) -> EndpointAddr
fn from(value: SocketEndpointAddr) -> EndpointAddr
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<EndpointAddr> for BleEndpontAddr
impl TryFrom<EndpointAddr> for BleEndpontAddr
Source§type Error = TryIntoError<EndpointAddr>
type Error = TryIntoError<EndpointAddr>
The type returned in the event of a conversion error.
Source§fn try_from(
value: EndpointAddr,
) -> Result<BleEndpontAddr, TryIntoError<EndpointAddr>>
fn try_from( value: EndpointAddr, ) -> Result<BleEndpontAddr, TryIntoError<EndpointAddr>>
Performs the conversion.
Source§impl TryFrom<EndpointAddr> for SocketEndpointAddr
impl TryFrom<EndpointAddr> for SocketEndpointAddr
Source§type Error = TryIntoError<EndpointAddr>
type Error = TryIntoError<EndpointAddr>
The type returned in the event of a conversion error.
Source§fn try_from(
value: EndpointAddr,
) -> Result<SocketEndpointAddr, TryIntoError<EndpointAddr>>
fn try_from( value: EndpointAddr, ) -> Result<SocketEndpointAddr, TryIntoError<EndpointAddr>>
Performs the conversion.
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