Struct asyncio::ip::MulticastLeaveGroup [] [src]

pub struct MulticastLeaveGroup(_);

Socket option to leave a multicast group on a specified interface.

Implements the IPPROTO_IP/IP_DROP_MEMBERSHIP or IPPROTO_IPV6/IPV6_LEAVE_GROUP socket option.

Examples

Setting the option:

use asyncio::*;
use asyncio::ip::*;

let ctx = &IoContext::new().unwrap();
let soc = UdpSocket::new(ctx, Udp::v4()).unwrap();

soc.set_option(MulticastLeaveGroup::new(IpAddr::V4(IpAddrV4::new(225,0,0,1))));

Methods

impl MulticastLeaveGroup
[src]

Trait Implementations

impl Clone for MulticastLeaveGroup
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: IpProtocol> SocketOption<P> for MulticastLeaveGroup
[src]

impl<P: IpProtocol> SetSocketOption<P> for MulticastLeaveGroup
[src]