fn pretty_kernel(&self) -> Result<String, ReadoutError> {
        let os_type = self.os_type().unwrap_or_default();
        let os_release = self.os_release().unwrap_or_default();

        if !(os_type.is_empty() || os_release.is_empty()) {
            return Ok(format!("{} {}", os_type, os_release));
        }

        Err(ReadoutError::MetricNotAvailable)
    }
/// This function is used for getting the kernel name and version in a pretty format.
This function is used for getting the kernel name and version in a pretty format.
This function is used for getting the kernel name and version in a pretty format .
fn pretty_kernel(&self) -> Result<String, ReadoutError> {
        let os_type = self.os_type().unwrap_or_default();
        let os_release = self.os_release().unwrap_or_default();
        if !(os_type.is_empty() || os_release.is_empty()) {
            return Ok(format!("{} {}", os_type, os_release));
        }
        Err(ReadoutError::MetricNotAvailable)
    }
fn pretty_kernel ( & self ) -> Result < String , ReadoutError > { let os_type = self . os_type ( ) . unwrap_or_default ( ) ; let os_release = self . os_release ( ) . unwrap_or_default ( ) ; if ! ( os_type . is_empty ( ) || os_release . is_empty ( ) ) { return Ok ( format ! ( " " os_type os_release ) ) ; } Err ( ReadoutError :: MetricNotAvailable ) }
This function is used for getting the kernel name and version in a pretty format.
This function is used for getting the kernel name and version in a pretty format .
&self
&self