fn create_packet_bytes(mac: &[u8]) -> Packet {
        let mut packet = Packet::new();

        packet.extend(HEADER);
        packet.extend(WolPacket::extend_mac(mac));

        debug_assert_eq!(PACKET_LEN, packet.len());

        packet
    }
/// Creates bytes of the magic packet from MAC address
Creates bytes of the magic packet from MAC address
Creates bytes of the magic packet from MAC address
fn create_packet_bytes(mac: &[u8]) -> Packet {
        let mut packet = Packet::new();
        packet.extend(HEADER);
        packet.extend(WolPacket::extend_mac(mac));
        debug_assert_eq!(PACKET_LEN, packet.len());
        packet
    }
fn create_packet_bytes ( mac : & [ u8 ] ) -> Packet { let mut packet = Packet :: new ( ) ; packet . extend ( HEADER ) ; packet . extend ( WolPacket :: extend_mac ( mac ) ) ; debug_assert_eq ! ( PACKET_LEN packet len ( ) ) ; packet }
Creates bytes of the magic packet from MAC address
Creates bytes of the magic packet from MAC address
mac
&[u8]