pub struct HardwareFilter { /* private fields */ }Expand description
Used with Session::find_hardware to specify which pieces of hardware are of interest.
Implementations§
Source§impl HardwareFilter
impl HardwareFilter
pub fn new(session: &Session) -> Result<Self>
Sourcepub fn set_mode(&mut self, mode: FilterMode) -> &mut Self
pub fn set_mode(&mut self, mode: FilterMode) -> &mut Self
Set the mode for the filter, determining how the filter match is applied.
pub fn mode(&self) -> FilterMode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HardwareFilter
impl RefUnwindSafe for HardwareFilter
impl !Send for HardwareFilter
impl !Sync for HardwareFilter
impl Unpin for HardwareFilter
impl UnwindSafe for HardwareFilter
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