pub struct ListOptions { /* private fields */ }Expand description
Controls how installed applications are enumerated.
Implementations§
Source§impl ListOptions
impl ListOptions
Sourcepub fn with_icon_size(self, size: u16) -> Result<Self>
pub fn with_icon_size(self, size: u16) -> Result<Self>
Requests an icon for every discovered application.
Sourcepub const fn strict(self, strict: bool) -> Self
pub const fn strict(self, strict: bool) -> Self
Makes malformed or inaccessible entries fail the whole scan.
The default best-effort mode returns valid applications and records
individual failures in AppInfoReport::warnings.
Sourcepub const fn icon_size(&self) -> Option<NonZeroU16>
pub const fn icon_size(&self) -> Option<NonZeroU16>
Requested icon size, or None when icons should be loaded lazily.
Trait Implementations§
Source§impl Clone for ListOptions
impl Clone for ListOptions
Source§fn clone(&self) -> ListOptions
fn clone(&self) -> ListOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ListOptions
Source§impl Debug for ListOptions
impl Debug for ListOptions
Source§impl Default for ListOptions
impl Default for ListOptions
Source§fn default() -> ListOptions
fn default() -> ListOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListOptions
impl RefUnwindSafe for ListOptions
impl Send for ListOptions
impl Sync for ListOptions
impl Unpin for ListOptions
impl UnsafeUnpin for ListOptions
impl UnwindSafe for ListOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more