#[repr(C)]pub struct SystemRestartHistory { /* private fields */ }
Expand description
Represents the history of system restart events.
Implementations§
Source§impl SystemRestartHistory
impl SystemRestartHistory
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SystemRestartHistory.
Sourcepub const fn power_up_count(&self) -> &PowerUpCount
pub const fn power_up_count(&self) -> &PowerUpCount
Gets the PowerUpCount for SystemRestartHistory.
Sourcepub fn set_power_up_count(&mut self, val: PowerUpCount)
pub fn set_power_up_count(&mut self, val: PowerUpCount)
Sets the PowerUpCount for SystemRestartHistory.
Sourcepub fn with_power_up_count(self, val: PowerUpCount) -> Self
pub fn with_power_up_count(self, val: PowerUpCount) -> Self
Builder function that sets the PowerUpCount for SystemRestartHistory.
Sourcepub const fn power_down_with_bill_stopped_count(
&self,
) -> &PowerDownWithBillStoppedCount
pub const fn power_down_with_bill_stopped_count( &self, ) -> &PowerDownWithBillStoppedCount
Gets the PowerDownWithBillStoppedCount for SystemRestartHistory.
Sourcepub fn set_power_down_with_bill_stopped_count(
&mut self,
val: PowerDownWithBillStoppedCount,
)
pub fn set_power_down_with_bill_stopped_count( &mut self, val: PowerDownWithBillStoppedCount, )
Sets the PowerDownWithBillStoppedCount for SystemRestartHistory.
Sourcepub fn with_power_down_with_bill_stopped_count(
self,
val: PowerDownWithBillStoppedCount,
) -> Self
pub fn with_power_down_with_bill_stopped_count( self, val: PowerDownWithBillStoppedCount, ) -> Self
Builder function that sets the PowerDownWithBillStoppedCount for SystemRestartHistory.
Sourcepub const fn internal_reset_count(&self) -> &InternalResetCount
pub const fn internal_reset_count(&self) -> &InternalResetCount
Gets the InternalResetCount for SystemRestartHistory.
Sourcepub fn set_internal_reset_count(&mut self, val: InternalResetCount)
pub fn set_internal_reset_count(&mut self, val: InternalResetCount)
Sets the InternalResetCount for SystemRestartHistory.
Sourcepub fn with_internal_reset_count(self, val: InternalResetCount) -> Self
pub fn with_internal_reset_count(self, val: InternalResetCount) -> Self
Builder function that sets the InternalResetCount for SystemRestartHistory.
Sourcepub const fn internal_reset_with_bill_stopped_count(
&self,
) -> &InternalResetWithBillStoppedCount
pub const fn internal_reset_with_bill_stopped_count( &self, ) -> &InternalResetWithBillStoppedCount
Gets the InternalResetWithBillStoppedCount for SystemRestartHistory.
Sourcepub fn set_internal_reset_with_bill_stopped_count(
&mut self,
val: InternalResetWithBillStoppedCount,
)
pub fn set_internal_reset_with_bill_stopped_count( &mut self, val: InternalResetWithBillStoppedCount, )
Sets the InternalResetWithBillStoppedCount for SystemRestartHistory.
Sourcepub fn with_internal_reset_with_bill_stopped_count(
self,
val: InternalResetWithBillStoppedCount,
) -> Self
pub fn with_internal_reset_with_bill_stopped_count( self, val: InternalResetWithBillStoppedCount, ) -> Self
Builder function that sets the InternalResetWithBillStoppedCount for SystemRestartHistory.
Sourcepub const fn system_opening_count(&self) -> &SystemOpeningCount
pub const fn system_opening_count(&self) -> &SystemOpeningCount
Gets the SystemOpeningCount for SystemRestartHistory.
Sourcepub fn set_system_opening_count(&mut self, val: SystemOpeningCount)
pub fn set_system_opening_count(&mut self, val: SystemOpeningCount)
Sets the SystemOpeningCount for SystemRestartHistory.
Sourcepub fn with_system_opening_count(self, val: SystemOpeningCount) -> Self
pub fn with_system_opening_count(self, val: SystemOpeningCount) -> Self
Builder function that sets the SystemOpeningCount for SystemRestartHistory.
Sourcepub const fn system_opening_details(&self) -> &SystemOpeningDetails
pub const fn system_opening_details(&self) -> &SystemOpeningDetails
Gets the SystemOpeningDetails for SystemRestartHistory.
Sourcepub fn set_system_opening_details(&mut self, val: SystemOpeningDetails)
pub fn set_system_opening_details(&mut self, val: SystemOpeningDetails)
Sets the SystemOpeningDetails for SystemRestartHistory.
Sourcepub fn with_system_opening_details(self, val: SystemOpeningDetails) -> Self
pub fn with_system_opening_details(self, val: SystemOpeningDetails) -> Self
Builder function that sets the SystemOpeningDetails for SystemRestartHistory.
Trait Implementations§
Source§impl Clone for SystemRestartHistory
impl Clone for SystemRestartHistory
Source§fn clone(&self) -> SystemRestartHistory
fn clone(&self) -> SystemRestartHistory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more