sntpc

Function simple_get_time

Source
pub fn simple_get_time<A>(
    pool_addrs: A,
    socket: &UdpSocket,
) -> Result<NtpResult>
where A: ToSocketAddrs + Copy + Debug,
Expand description

Supplementary get_time alternative that wraps provided UDP socket into a wrapper type that implements necessary traits for SNTP client proper operation

ยงErrors

Will return Err if an SNTP request cannot be sent or SNTP response fails