pub fn serialize_ntp_packet(pack: NtpPacket) -> Vec<u8> {
    let mut buff = Cursor::new(Vec::new());
    buff.write_all(&serialize_header(pack.header))
        .expect("buffer write failed; can't serialize NtpPacket");
    buff.write_all(&serialize_extensions(pack.exts))
        .expect("buffer write failed; can't serialize NtpPacket");
    buff.into_inner()
}
/// serialize_ntp_packet returns the packet in wire format.
serialize_ntp_packet returns the packet in wire format.
serialize_ntp_packet returns the packet in wire format .
pub fn serialize_ntp_packet(pack: NtpPacket) -> Vec<u8> {
    let mut buff = Cursor::new(Vec::new());
    buff.write_all(&serialize_header(pack.header))
        .expect("buffer write failed; can't serialize NtpPacket");
    buff.write_all(&serialize_extensions(pack.exts))
        .expect("buffer write failed; can't serialize NtpPacket");
    buff.into_inner()
}
pub fn serialize_ntp_packet ( pack : NtpPacket ) -> Vec < u8 > { let mut buff = Cursor :: new ( Vec :: new ( ) ) ; buff . write_all ( & serialize_header ( pack . header ) ) . expect ( " " ) ; buff . write_all ( & serialize_extensions ( pack . exts ) ) . expect ( " " ) ; buff . into_inner ( ) }
serialize_ntp_packet returns the packet in wire format.
serialize_ntp_packet returns the packet in wire format .
pack
NtpPacket
pack
NtpPacket