pub struct SystemRestartHistory { /* private fields */ }Expand description
Represents the history of system restart events.
Implementations§
Source§impl SystemRestartHistory
impl SystemRestartHistory
Sourcepub const fn new() -> SystemRestartHistory
pub const fn new() -> SystemRestartHistory
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) -> SystemRestartHistory
pub fn with_power_up_count(self, val: PowerUpCount) -> SystemRestartHistory
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,
) -> SystemRestartHistory
pub fn with_power_down_with_bill_stopped_count( self, val: PowerDownWithBillStoppedCount, ) -> SystemRestartHistory
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,
) -> SystemRestartHistory
pub fn with_internal_reset_count( self, val: InternalResetCount, ) -> SystemRestartHistory
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,
) -> SystemRestartHistory
pub fn with_internal_reset_with_bill_stopped_count( self, val: InternalResetWithBillStoppedCount, ) -> SystemRestartHistory
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,
) -> SystemRestartHistory
pub fn with_system_opening_count( self, val: SystemOpeningCount, ) -> SystemRestartHistory
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,
) -> SystemRestartHistory
pub fn with_system_opening_details( self, val: SystemOpeningDetails, ) -> SystemRestartHistory
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