Struct toad::step::provision_ids::SocketAddrWithDefault
source · #[non_exhaustive]pub struct SocketAddrWithDefault(pub SocketAddr);
Expand description
Newtype wrapping no_std_net::SocketAddr
that adds
a Default implementation.
Defined so that a tinyvec::ArrayVec
may be used with this type.
This should be used sparingly, since a “default socket address” isn’t meaningful
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.0: SocketAddr
Trait Implementations§
source§impl Clone for SocketAddrWithDefault
impl Clone for SocketAddrWithDefault
source§fn clone(&self) -> SocketAddrWithDefault
fn clone(&self) -> SocketAddrWithDefault
Returns a copy 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 SocketAddrWithDefault
impl Debug for SocketAddrWithDefault
source§impl Default for SocketAddrWithDefault
impl Default for SocketAddrWithDefault
source§impl Hash for SocketAddrWithDefault
impl Hash for SocketAddrWithDefault
source§impl Ord for SocketAddrWithDefault
impl Ord for SocketAddrWithDefault
source§fn cmp(&self, other: &SocketAddrWithDefault) -> Ordering
fn cmp(&self, other: &SocketAddrWithDefault) -> 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<SocketAddrWithDefault> for SocketAddrWithDefault
impl PartialEq<SocketAddrWithDefault> for SocketAddrWithDefault
source§fn eq(&self, other: &SocketAddrWithDefault) -> bool
fn eq(&self, other: &SocketAddrWithDefault) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SocketAddrWithDefault> for SocketAddrWithDefault
impl PartialOrd<SocketAddrWithDefault> for SocketAddrWithDefault
source§fn partial_cmp(&self, other: &SocketAddrWithDefault) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketAddrWithDefault) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SocketAddrWithDefault
impl Eq for SocketAddrWithDefault
impl StructuralEq for SocketAddrWithDefault
impl StructuralPartialEq for SocketAddrWithDefault
Auto Trait Implementations§
impl RefUnwindSafe for SocketAddrWithDefault
impl Send for SocketAddrWithDefault
impl Sync for SocketAddrWithDefault
impl Unpin for SocketAddrWithDefault
impl UnwindSafe for SocketAddrWithDefault
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
source§impl<F, A, TF, T> Sequence<F, A, TF> for T
impl<F, A, TF, T> Sequence<F, A, TF> for T
source§fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>, Ap: HKT1, <Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>, <Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>, <Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>, F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
See
Sequence