pub struct WifiAddress {
pub ip: IpAddr,
pub scope_id: u32,
}Fields§
§ip: IpAddr§scope_id: u32Implementations§
Source§impl WifiAddress
impl WifiAddress
pub fn new(ip: IpAddr, scope_id: u32) -> Result<Self>
pub fn socket_addr(self, port: u16) -> SocketAddr
Trait Implementations§
Source§impl Clone for WifiAddress
impl Clone for WifiAddress
impl Copy for WifiAddress
Source§impl Debug for WifiAddress
impl Debug for WifiAddress
Source§impl<'de> Deserialize<'de> for WifiAddress
impl<'de> Deserialize<'de> for WifiAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WifiAddress
impl Display for WifiAddress
impl Eq for WifiAddress
Source§impl From<WifiAddress> for String
impl From<WifiAddress> for String
Source§fn from(value: WifiAddress) -> Self
fn from(value: WifiAddress) -> Self
Converts to this type from the input type.
Source§impl FromStr for WifiAddress
impl FromStr for WifiAddress
Source§impl Hash for WifiAddress
impl Hash for WifiAddress
Source§impl PartialEq for WifiAddress
impl PartialEq for WifiAddress
Source§impl Serialize for WifiAddress
impl Serialize for WifiAddress
impl StructuralPartialEq for WifiAddress
Auto Trait Implementations§
impl Forget for WifiAddress
impl Freeze for WifiAddress
impl Move for WifiAddress
impl RefUnwindSafe for WifiAddress
impl Send for WifiAddress
impl Sync for WifiAddress
impl Unpin for WifiAddress
impl UnsafeUnpin for WifiAddress
impl UnwindSafe for WifiAddress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type