pub struct PartialAddr<H: Host, const DEFAULT_PORT: u16> {
pub host: H,
pub port: Option<u16>,
}Fields§
§host: H§port: Option<u16>Implementations§
Trait Implementations§
Source§impl<H: Clone + Host, const DEFAULT_PORT: u16> Clone for PartialAddr<H, DEFAULT_PORT>
impl<H: Clone + Host, const DEFAULT_PORT: u16> Clone for PartialAddr<H, DEFAULT_PORT>
Source§fn clone(&self) -> PartialAddr<H, DEFAULT_PORT>
fn clone(&self) -> PartialAddr<H, DEFAULT_PORT>
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<'de, H, const DEFAULT_PORT: u16> Deserialize<'de> for PartialAddr<H, DEFAULT_PORT>where
H: Deserialize<'de> + Host,
impl<'de, H, const DEFAULT_PORT: u16> Deserialize<'de> for PartialAddr<H, DEFAULT_PORT>where
H: Deserialize<'de> + Host,
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<H, const DEFAULT_PORT: u16> Display for PartialAddr<H, DEFAULT_PORT>
impl<H, const DEFAULT_PORT: u16> Display for PartialAddr<H, DEFAULT_PORT>
Source§impl<H: Host, const DEFAULT_PORT: u16> From<PartialAddr<H, DEFAULT_PORT>> for NetAddr<H>
impl<H: Host, const DEFAULT_PORT: u16> From<PartialAddr<H, DEFAULT_PORT>> for NetAddr<H>
Source§fn from(addr: PartialAddr<H, DEFAULT_PORT>) -> Self
fn from(addr: PartialAddr<H, DEFAULT_PORT>) -> Self
Converts to this type from the input type.
Source§impl<H, const DEFAULT_PORT: u16> FromStr for PartialAddr<H, DEFAULT_PORT>
impl<H, const DEFAULT_PORT: u16> FromStr for PartialAddr<H, DEFAULT_PORT>
Source§impl<H: Host, const DEFAULT_PORT: u16> Host for PartialAddr<H, DEFAULT_PORT>
impl<H: Host, const DEFAULT_PORT: u16> Host for PartialAddr<H, DEFAULT_PORT>
fn requires_proxy(&self) -> bool
Source§impl<H, const DEFAULT_PORT: u16> Localhost for PartialAddr<H, DEFAULT_PORT>
impl<H, const DEFAULT_PORT: u16> Localhost for PartialAddr<H, DEFAULT_PORT>
Source§impl<H: PartialEq + Host, const DEFAULT_PORT: u16> PartialEq for PartialAddr<H, DEFAULT_PORT>
impl<H: PartialEq + Host, const DEFAULT_PORT: u16> PartialEq for PartialAddr<H, DEFAULT_PORT>
Source§fn eq(&self, other: &PartialAddr<H, DEFAULT_PORT>) -> bool
fn eq(&self, other: &PartialAddr<H, DEFAULT_PORT>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<H, const DEFAULT_PORT: u16> Serialize for PartialAddr<H, DEFAULT_PORT>
impl<H, const DEFAULT_PORT: u16> Serialize for PartialAddr<H, DEFAULT_PORT>
impl<H: Eq + Host, const DEFAULT_PORT: u16> Eq for PartialAddr<H, DEFAULT_PORT>
impl<H: Host, const DEFAULT_PORT: u16> StructuralPartialEq for PartialAddr<H, DEFAULT_PORT>
Auto Trait Implementations§
impl<H, const DEFAULT_PORT: u16> Freeze for PartialAddr<H, DEFAULT_PORT>where
H: Freeze,
impl<H, const DEFAULT_PORT: u16> RefUnwindSafe for PartialAddr<H, DEFAULT_PORT>where
H: RefUnwindSafe,
impl<H, const DEFAULT_PORT: u16> Send for PartialAddr<H, DEFAULT_PORT>where
H: Send,
impl<H, const DEFAULT_PORT: u16> Sync for PartialAddr<H, DEFAULT_PORT>where
H: Sync,
impl<H, const DEFAULT_PORT: u16> Unpin for PartialAddr<H, DEFAULT_PORT>where
H: Unpin,
impl<H, const DEFAULT_PORT: u16> UnwindSafe for PartialAddr<H, DEFAULT_PORT>where
H: UnwindSafe,
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