cosmic::iced::window::icon

Function from_file

source
pub fn from_file<P>(icon_path: P) -> Result<Icon, Error>
where P: AsRef<Path>,
Expand description

Creates an icon from an image file.

This will return an error in case the file is missing at run-time. You may prefer from_file_data instead.