pub enum DeviceFilter {
All,
ByType(DeviceType),
ByState(DeviceState),
BySite(EntityId),
Online,
Offline,
Custom(Box<dyn Fn(&Device) -> bool + Send + Sync>),
}Expand description
Filter predicate for device collections.
Variants§
All
ByType(DeviceType)
ByState(DeviceState)
BySite(EntityId)
Online
Offline
Custom(Box<dyn Fn(&Device) -> bool + Send + Sync>)
Implementations§
Auto Trait Implementations§
impl Freeze for DeviceFilter
impl !RefUnwindSafe for DeviceFilter
impl Send for DeviceFilter
impl Sync for DeviceFilter
impl Unpin for DeviceFilter
impl UnsafeUnpin for DeviceFilter
impl !UnwindSafe for DeviceFilter
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