pub fn extract_extension(pack: &NtpPacket, kind: NtpExtensionType) -> Option<NtpExtension> {
    for ext in pack.exts.clone() {
        if ext.ext_type == kind {
            return Some(ext);
        }
    }
    None
}
/// extract_extension retrieves the extension if it exists, and else none.
extract_extension retrieves the extension if it exists, and else none.
extract_extension retrieves the extension if it exists and else none .
pub fn extract_extension(pack: &NtpPacket, kind: NtpExtensionType) -> Option<NtpExtension> {
    for ext in pack.exts.clone() {
        if ext.ext_type == kind {
            return Some(ext);
        }
    }
    None
}
pub fn extract_extension ( pack : & NtpPacket , kind : NtpExtensionType ) -> Option < NtpExtension > { for ext in pack . exts . clone ( ) { if ext . ext_type == kind { return Some ( ext ) ; } } None }
extract_extension retrieves the extension if it exists, and else none.
extract_extension retrieves the extension if it exists and else none .
pack
&NtpPacket
kind
NtpExtensionType
pack
&NtpPacket
kind
NtpExtensionType