pub fn option(&self, code: u8) -> Option<&'a [u8]> {
        for option in &self.options {
            if option.code == code {
                return Some(&option.data);
            }
        }
        None
    }
/// Extracts requested option payload from packet if available
Extracts requested option payload from packet if available
Extracts requested option payload from packet if available
pub fn option(&self, code: u8) -> Option<&'a [u8]> {
        for option in &self.options {
            if option.code == code {
                return Some(&option.data);
            }
        }
        None
    }
pub fn option ( & self , code : u8 ) -> Option < & ' a [ u8 ] > { for option in & self . options { if option . code == code { return Some ( & option . data ) ; } } None }
Extracts requested option payload from packet if available
Extracts requested option payload from packet if available
&self
code
u8
&self
code
u8