[][src]Trait async_coap::datagram::MulticastSocket

pub trait MulticastSocket: DatagramSocketTypes {
    type IpAddr;
    fn join_multicast<A>(&self, addr: A) -> Result<(), Self::Error>
    where
        A: Into<Self::IpAddr>
;
fn leave_multicast<A>(&self, addr: A) -> Result<(), Self::Error>
    where
        A: Into<Self::IpAddr>
; }

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.

Loading content...

Required methods

fn join_multicast<A>(&self, addr: A) -> Result<(), Self::Error> where
    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>, 

Attempts to leave the given multicast group.

Loading content...

Implementors

impl MulticastSocket for AllowStdUdpSocket[src]

type IpAddr = IpAddr

impl MulticastSocket for LoopbackSocket[src]

type IpAddr = String

impl MulticastSocket for NullSocket[src]

type IpAddr = String

Loading content...