pub fn response_result(&self) -> Option<AdsError> {
        if self.ams_header.data.len() >= 4 {
            if let Ok(result) = self.ams_header.data.as_slice().read_u32::<LittleEndian>() {
                return Some(AdsError::from(result));
            }
        }
        None
    }
///Get the ads error code from the response data (ams header data section)
Get the ads error code from the response data (ams header data section)
Get the ads error code from the response data ( ams header data section )
pub fn response_result(&self) -> Option<AdsError> {
        if self.ams_header.data.len() >= 4 {
            if let Ok(result) = self.ams_header.data.as_slice().read_u32::<LittleEndian>() {
                return Some(AdsError::from(result));
            }
        }
        None
    }
pub fn response_result ( & self ) -> Option < AdsError > { if self . ams_header . data . len ( ) >= 4 { if let Ok ( result ) = self . ams_header . data . as_slice ( ) . read_u32 :: < LittleEndian > ( ) { return Some ( AdsError :: from ( result ) ) ; } } None }
Get the ads error code from the response data (ams header data section)
Get the ads error code from the response data ( ams header data section )
&self
&self