#[non_exhaustive]pub struct WirelessDeviceLogOption {
pub type: Option<WirelessDeviceType>,
pub log_level: Option<LogLevel>,
pub events: Option<Vec<WirelessDeviceEventLogOption>>,
}Expand description
The log options for wireless devices and can be used to set log levels for a specific type of wireless device.
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.type: Option<WirelessDeviceType>The wireless device type.
log_level: Option<LogLevel>The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.
events: Option<Vec<WirelessDeviceEventLogOption>>The list of wireless device event log options.
Implementations§
source§impl WirelessDeviceLogOption
impl WirelessDeviceLogOption
sourcepub fn type(&self) -> Option<&WirelessDeviceType>
pub fn type(&self) -> Option<&WirelessDeviceType>
The wireless device type.
sourcepub fn log_level(&self) -> Option<&LogLevel>
pub fn log_level(&self) -> Option<&LogLevel>
The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.
sourcepub fn events(&self) -> Option<&[WirelessDeviceEventLogOption]>
pub fn events(&self) -> Option<&[WirelessDeviceEventLogOption]>
The list of wireless device event log options.
source§impl WirelessDeviceLogOption
impl WirelessDeviceLogOption
sourcepub fn builder() -> WirelessDeviceLogOptionBuilder
pub fn builder() -> WirelessDeviceLogOptionBuilder
Creates a new builder-style object to manufacture WirelessDeviceLogOption.
Trait Implementations§
source§impl Clone for WirelessDeviceLogOption
impl Clone for WirelessDeviceLogOption
source§fn clone(&self) -> WirelessDeviceLogOption
fn clone(&self) -> WirelessDeviceLogOption
Returns a copy 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 WirelessDeviceLogOption
impl Debug for WirelessDeviceLogOption
source§impl PartialEq<WirelessDeviceLogOption> for WirelessDeviceLogOption
impl PartialEq<WirelessDeviceLogOption> for WirelessDeviceLogOption
source§fn eq(&self, other: &WirelessDeviceLogOption) -> bool
fn eq(&self, other: &WirelessDeviceLogOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for WirelessDeviceLogOption
Auto Trait Implementations§
impl RefUnwindSafe for WirelessDeviceLogOption
impl Send for WirelessDeviceLogOption
impl Sync for WirelessDeviceLogOption
impl Unpin for WirelessDeviceLogOption
impl UnwindSafe for WirelessDeviceLogOption
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