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]
fn new(multicast: IpAddr) -> MulticastLeaveGroup
fn from_v4(multicast: IpAddrV4, interface: IpAddrV4) -> MulticastLeaveGroup
fn from_v6(multicast: IpAddrV6, scope_id: u32) -> MulticastLeaveGroup
Trait Implementations
impl Clone for MulticastLeaveGroup
[src]
fn clone(&self) -> MulticastLeaveGroup
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more