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]

Trait Implementations

impl Clone for OutboundInterface
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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