[−][src]Trait async_coap::datagram::MulticastSocket
Trait that provides methods for joining/leaving multicast groups.
Associated Types
type IpAddr
The "address" type for this socket.
Note that this is different than a SocketAddr
, which also includes a port number.
This is just the address.
Required methods
fn join_multicast<A>(&self, addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
A: Into<Self::IpAddr>,
Attempts to join the given multicast group.
fn leave_multicast<A>(&self, addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
A: Into<Self::IpAddr>,
Attempts to leave the given multicast group.
Implementors
impl MulticastSocket for AllowStdUdpSocket
[src]
type IpAddr = IpAddr
fn join_multicast<A>(&self, addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
[src]
A: Into<Self::IpAddr>,
fn leave_multicast<A>(&self, addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
[src]
A: Into<Self::IpAddr>,
impl MulticastSocket for LoopbackSocket
[src]
type IpAddr = String
fn join_multicast<A>(&self, _addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
[src]
A: Into<Self::IpAddr>,
fn leave_multicast<A>(&self, _addr: A) -> Result<(), Self::Error> where
A: Into<Self::IpAddr>,
[src]
A: Into<Self::IpAddr>,