#[non_exhaustive]pub struct PowerLineFrequencyCapability {
pub hz50: bool,
pub hz60: bool,
pub disabled: bool,
pub auto: bool,
pub default: PowerLineFrequency,
}Expand description
Power-line-frequency capability detail on devices that expose it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hz50: booltrue if 50 Hz filtering is selectable on this device.
hz60: booltrue if 60 Hz filtering is selectable on this device.
disabled: booltrue if the “off” mode is selectable on this device.
auto: booltrue if hardware auto-detect mode is selectable on this device.
default: PowerLineFrequencyFactory default mode.
Trait Implementations§
Source§impl Clone for PowerLineFrequencyCapability
impl Clone for PowerLineFrequencyCapability
Source§fn clone(&self) -> PowerLineFrequencyCapability
fn clone(&self) -> PowerLineFrequencyCapability
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerLineFrequencyCapability
impl Debug for PowerLineFrequencyCapability
Source§impl Hash for PowerLineFrequencyCapability
impl Hash for PowerLineFrequencyCapability
Source§impl PartialEq for PowerLineFrequencyCapability
impl PartialEq for PowerLineFrequencyCapability
Source§fn eq(&self, other: &PowerLineFrequencyCapability) -> bool
fn eq(&self, other: &PowerLineFrequencyCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PowerLineFrequencyCapability
impl Eq for PowerLineFrequencyCapability
impl StructuralPartialEq for PowerLineFrequencyCapability
Auto Trait Implementations§
impl Freeze for PowerLineFrequencyCapability
impl RefUnwindSafe for PowerLineFrequencyCapability
impl Send for PowerLineFrequencyCapability
impl Sync for PowerLineFrequencyCapability
impl Unpin for PowerLineFrequencyCapability
impl UnsafeUnpin for PowerLineFrequencyCapability
impl UnwindSafe for PowerLineFrequencyCapability
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