pub struct HostAndMaybePort { /* private fields */ }Expand description
A host and optional port used by listen= socket endpoints.
Implementations§
Source§impl HostAndMaybePort
impl HostAndMaybePort
Sourcepub fn builder() -> HostAndMaybePortBuilder
pub fn builder() -> HostAndMaybePortBuilder
Create an instance of HostAndMaybePort using the builder syntax
Trait Implementations§
Source§impl Arbitrary for HostAndMaybePort
impl Arbitrary for HostAndMaybePort
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<u16> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<u16> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<u16> as Arbitrary>::Strategy), fn((String, Option<u16>)) -> HostAndMaybePort>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<u16> as Arbitrary>::Strategy), fn((String, Option<u16>)) -> HostAndMaybePort>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for HostAndMaybePort
impl Clone for HostAndMaybePort
Source§fn clone(&self) -> HostAndMaybePort
fn clone(&self) -> HostAndMaybePort
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 HostAndMaybePort
impl Debug for HostAndMaybePort
Source§impl Hash for HostAndMaybePort
impl Hash for HostAndMaybePort
Source§impl Ord for HostAndMaybePort
impl Ord for HostAndMaybePort
Source§fn cmp(&self, other: &HostAndMaybePort) -> Ordering
fn cmp(&self, other: &HostAndMaybePort) -> 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 HostAndMaybePort
impl PartialEq for HostAndMaybePort
Source§impl PartialOrd for HostAndMaybePort
impl PartialOrd for HostAndMaybePort
impl Eq for HostAndMaybePort
impl StructuralPartialEq for HostAndMaybePort
Auto Trait Implementations§
impl Freeze for HostAndMaybePort
impl RefUnwindSafe for HostAndMaybePort
impl Send for HostAndMaybePort
impl Sync for HostAndMaybePort
impl Unpin for HostAndMaybePort
impl UnsafeUnpin for HostAndMaybePort
impl UnwindSafe for HostAndMaybePort
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