pub fn run_features<'a>(entries: &'a Vec<String>, task: &Task) -> Result<(), Errno> {
    for entry in entries {
        match entry.as_str() {
            "wayland" => {
                // TODO: The paths for the display and memory allocation file currently hard coded
                // to wayland-0 and wayland-1. In the future this will need to match the environment
                // variables set for the component.
                serve_wayland(
                    task,
                    b"/data/tmp/wayland-0".to_vec(),
                    b"/data/tmp/wayland-1".to_vec(),
                )?;
            }
            feature => {
                log::warn!("Unsupported feature: {:?}", feature);
            }
        }
    }
    Ok(())
}
/// Parses and runs the features from the provided "program strvec."
Parses and runs the features from the provided "program strvec."
Parses and runs the features from the provided " program strvec . "
pub fn run_features<'a>(entries: &'a Vec<String>, task: &Task) -> Result<(), Errno> {
    for entry in entries {
        match entry.as_str() {
            "wayland" => {
                // TODO: The paths for the display and memory allocation file currently hard coded
                // to wayland-0 and wayland-1. In the future this will need to match the environment
                // variables set for the component.
                serve_wayland(
                    task,
                    b"/data/tmp/wayland-0".to_vec(),
                    b"/data/tmp/wayland-1".to_vec(),
                )?;
            }
            feature => {
                log::warn!("Unsupported feature: {:?}", feature);
            }
        }
    }
    Ok(())
}
pub fn run_features < ' a > ( entries : & ' a Vec < String > , task : & Task ) -> Result < ( ) , Errno > { for entry in entries { match entry . as_str ( ) { " " => { // TODO: The paths for the display and memory allocation file currently hard coded // to wayland-0 and wayland-1. In the future this will need to match the environment // variables set for the component. serve_wayland ( task , b" " . to_vec ( ) , b" " . to_vec ( ) , ) ? ; } feature => { log :: warn ! ( " " feature ) ; } } } Ok ( ( ) ) }
Parses and runs the features from the provided "program strvec."
Parses and runs the features from the provided " program strvec . "
entries
&'a Vec<String>
task
&Task
entries
&'a Vec<String>
task
&Task