Struct smbioslib::SMBiosSystemReset
source · [−]pub struct SMBiosSystemReset<'a> { /* private fields */ }
Expand description
System Reset (Type 23)
This structure describes whether Automatic System Reset functions are enabled (Status).
If the system has a watchdog timer and the timer is not reset (Timer Reset) before the Interval elapses, an automatic system reset occurs. The system re-boots according to the Boot Option. This function may repeat until the Limit is reached, at which time the system re-boots according to the Boot Option at Limit.
NOTE This structure type was added for version 2.2 of this specification.
Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17
Implementations
sourceimpl<'a> SMBiosSystemReset<'a>
impl<'a> SMBiosSystemReset<'a>
sourcepub fn capabilities(&self) -> Option<SystemResetCapabilities>
pub fn capabilities(&self) -> Option<SystemResetCapabilities>
Capabilities bit-field
Identifies the system-reset capabilities for the system
sourcepub fn reset_count(&self) -> Option<ResetCount>
pub fn reset_count(&self) -> Option<ResetCount>
Reset count
Number of automatic system resets since the last intentional reset
sourcepub fn reset_limit(&self) -> Option<ResetLimit>
pub fn reset_limit(&self) -> Option<ResetLimit>
Reset limit
Number of consecutive times the system reset is attempted
sourcepub fn timer_interval(&self) -> Option<TimerInterval>
pub fn timer_interval(&self) -> Option<TimerInterval>
Timer interval
Number of minutes to use for the watchdog timer
If the timer is not reset within this interval, the system reset timeout begins.
Trait Implementations
sourceimpl Debug for SMBiosSystemReset<'_>
impl Debug for SMBiosSystemReset<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosSystemReset<'a>
impl<'a> SMBiosStruct<'a> for SMBiosSystemReset<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosSystemReset<'_>
impl Serialize for SMBiosSystemReset<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SMBiosSystemReset<'a>
impl<'a> Send for SMBiosSystemReset<'a>
impl<'a> Sync for SMBiosSystemReset<'a>
impl<'a> Unpin for SMBiosSystemReset<'a>
impl<'a> UnwindSafe for SMBiosSystemReset<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more