Struct asyncio::ip::OutboundInterface
[−]
[src]
pub struct OutboundInterface(_);
Socket option for local interface to use for outgoing multicast packets.
Implements the IPPROTO_IP/IP_MULTICAST_IF 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(OutboundInterface::new(IpAddr::V4(IpAddrV4::new(1,2,3,4))));
Methods
impl OutboundInterface
[src]
fn new(interface: IpAddr) -> OutboundInterface
fn from_v4(interface: IpAddrV4) -> OutboundInterface
fn from_v6(interface: IpAddrV6) -> OutboundInterface
Trait Implementations
impl Clone for OutboundInterface
[src]
fn clone(&self) -> OutboundInterface
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