pub struct UnicastSourceAndMulticastDestination<I: Ip> {
pub unicast_source: I::Addr,
pub multicast_destination: I::Addr,
}
Expand description
An IP generic version of
fnet_multicast_admin::Ipv4UnicastSourceAndMulticastDestination
and
fnet_multicast_admin::Ipv6UnicastSourceAndMulticastDestination
.
Fields§
§unicast_source: I::Addr
§multicast_destination: I::Addr
Trait Implementations§
Source§impl<I: Clone + Ip> Clone for UnicastSourceAndMulticastDestination<I>
impl<I: Clone + Ip> Clone for UnicastSourceAndMulticastDestination<I>
Source§fn clone(&self) -> UnicastSourceAndMulticastDestination<I>
fn clone(&self) -> UnicastSourceAndMulticastDestination<I>
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 From<Ipv4UnicastSourceAndMulticastDestination> for UnicastSourceAndMulticastDestination<Ipv4>
impl From<Ipv4UnicastSourceAndMulticastDestination> for UnicastSourceAndMulticastDestination<Ipv4>
Source§fn from(addresses: Ipv4UnicastSourceAndMulticastDestination) -> Self
fn from(addresses: Ipv4UnicastSourceAndMulticastDestination) -> Self
Converts to this type from the input type.
Source§impl From<Ipv6UnicastSourceAndMulticastDestination> for UnicastSourceAndMulticastDestination<Ipv6>
impl From<Ipv6UnicastSourceAndMulticastDestination> for UnicastSourceAndMulticastDestination<Ipv6>
Source§fn from(addresses: Ipv6UnicastSourceAndMulticastDestination) -> Self
fn from(addresses: Ipv6UnicastSourceAndMulticastDestination) -> Self
Converts to this type from the input type.
Source§impl From<UnicastSourceAndMulticastDestination<Ipv4>> for Ipv4UnicastSourceAndMulticastDestination
impl From<UnicastSourceAndMulticastDestination<Ipv4>> for Ipv4UnicastSourceAndMulticastDestination
Source§fn from(addresses: UnicastSourceAndMulticastDestination<Ipv4>) -> Self
fn from(addresses: UnicastSourceAndMulticastDestination<Ipv4>) -> Self
Converts to this type from the input type.
Source§impl From<UnicastSourceAndMulticastDestination<Ipv6>> for Ipv6UnicastSourceAndMulticastDestination
impl From<UnicastSourceAndMulticastDestination<Ipv6>> for Ipv6UnicastSourceAndMulticastDestination
Source§fn from(addresses: UnicastSourceAndMulticastDestination<Ipv6>) -> Self
fn from(addresses: UnicastSourceAndMulticastDestination<Ipv6>) -> Self
Converts to this type from the input type.
Source§impl<I: Ip, IpType> GenericOverIp<IpType> for UnicastSourceAndMulticastDestination<I>where
IpType: Ip,
impl<I: Ip, IpType> GenericOverIp<IpType> for UnicastSourceAndMulticastDestination<I>where
IpType: Ip,
Source§type Type = UnicastSourceAndMulticastDestination<IpType>
type Type = UnicastSourceAndMulticastDestination<IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I: PartialEq + Ip> PartialEq for UnicastSourceAndMulticastDestination<I>
impl<I: PartialEq + Ip> PartialEq for UnicastSourceAndMulticastDestination<I>
Source§fn eq(&self, other: &UnicastSourceAndMulticastDestination<I>) -> bool
fn eq(&self, other: &UnicastSourceAndMulticastDestination<I>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<I: Ip> StructuralPartialEq for UnicastSourceAndMulticastDestination<I>
Auto Trait Implementations§
impl<I> Freeze for UnicastSourceAndMulticastDestination<I>
impl<I> RefUnwindSafe for UnicastSourceAndMulticastDestination<I>
impl<I> Send for UnicastSourceAndMulticastDestination<I>
impl<I> Sync for UnicastSourceAndMulticastDestination<I>
impl<I> Unpin for UnicastSourceAndMulticastDestination<I>
impl<I> UnwindSafe for UnicastSourceAndMulticastDestination<I>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.