pub fn send_magic_packet(
mac_address: MacAddress,
secure_on: Option<SecureOn>,
addr: SocketAddr,
) -> Result<()>Expand description
Send one magic packet.
Bind a new UDP socket to send a magic packet. If addr is an IPv4 address
bind to Ipv4Addr::UNSPECIFIED, otherwise bind Ipv6Addr::UNSPECIFIED.
Then send a magic packet to wake up mac_address over this socket, to the
given destination addr.
If secure_on is not None, include the SecureON token in the magic
packet. See SecureOn for more information about SecureON.
See SendMagicPacket::send_magic_packet for details about the arguments.
ยงErrors
Return errors from underlying socket I/O.