pub struct HardwareFailureCount(/* private fields */);Expand description
Represents the hardware failure count.
Implementations§
Source§impl HardwareFailureCount
impl HardwareFailureCount
Sourcepub const fn new() -> HardwareFailureCount
pub const fn new() -> HardwareFailureCount
Creates a new HardwareFailureCount.
Sourcepub const fn create(val: u32) -> HardwareFailureCount
pub const fn create(val: u32) -> HardwareFailureCount
Creates a new HardwareFailureCount from the provided parameter.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of HardwareFailureCount.
Trait Implementations§
Source§impl Clone for HardwareFailureCount
impl Clone for HardwareFailureCount
Source§fn clone(&self) -> HardwareFailureCount
fn clone(&self) -> HardwareFailureCount
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 HardwareFailureCount
impl Debug for HardwareFailureCount
Source§impl Default for HardwareFailureCount
impl Default for HardwareFailureCount
Source§fn default() -> HardwareFailureCount
fn default() -> HardwareFailureCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HardwareFailureCount
impl<'de> Deserialize<'de> for HardwareFailureCount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HardwareFailureCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HardwareFailureCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HardwareFailureCount
impl Display for HardwareFailureCount
Source§impl From<&HardwareFailureCount> for XfsMember
impl From<&HardwareFailureCount> for XfsMember
Source§fn from(val: &HardwareFailureCount) -> XfsMember
fn from(val: &HardwareFailureCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<&HardwareFailureCount> for XfsValue
impl From<&HardwareFailureCount> for XfsValue
Source§fn from(val: &HardwareFailureCount) -> XfsValue
fn from(val: &HardwareFailureCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for HardwareFailureCount
impl From<&i32> for HardwareFailureCount
Source§fn from(val: &i32) -> HardwareFailureCount
fn from(val: &i32) -> HardwareFailureCount
Converts to this type from the input type.
Source§impl From<&u32> for HardwareFailureCount
impl From<&u32> for HardwareFailureCount
Source§fn from(val: &u32) -> HardwareFailureCount
fn from(val: &u32) -> HardwareFailureCount
Converts to this type from the input type.
Source§impl From<HardwareFailureCount> for XfsMember
impl From<HardwareFailureCount> for XfsMember
Source§fn from(val: HardwareFailureCount) -> XfsMember
fn from(val: HardwareFailureCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<HardwareFailureCount> for XfsValue
impl From<HardwareFailureCount> for XfsValue
Source§fn from(val: HardwareFailureCount) -> XfsValue
fn from(val: HardwareFailureCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for HardwareFailureCount
impl From<i32> for HardwareFailureCount
Source§fn from(val: i32) -> HardwareFailureCount
fn from(val: i32) -> HardwareFailureCount
Converts to this type from the input type.
Source§impl From<u32> for HardwareFailureCount
impl From<u32> for HardwareFailureCount
Source§fn from(val: u32) -> HardwareFailureCount
fn from(val: u32) -> HardwareFailureCount
Converts to this type from the input type.
Source§impl PartialEq for HardwareFailureCount
impl PartialEq for HardwareFailureCount
Source§impl Serialize for HardwareFailureCount
impl Serialize for HardwareFailureCount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&XfsMember> for HardwareFailureCount
impl TryFrom<&XfsMember> for HardwareFailureCount
Source§impl TryFrom<&XfsValue> for HardwareFailureCount
impl TryFrom<&XfsValue> for HardwareFailureCount
Source§impl TryFrom<XfsMember> for HardwareFailureCount
impl TryFrom<XfsMember> for HardwareFailureCount
Source§impl TryFrom<XfsValue> for HardwareFailureCount
impl TryFrom<XfsValue> for HardwareFailureCount
impl Copy for HardwareFailureCount
impl Eq for HardwareFailureCount
impl StructuralPartialEq for HardwareFailureCount
Auto Trait Implementations§
impl Freeze for HardwareFailureCount
impl RefUnwindSafe for HardwareFailureCount
impl Send for HardwareFailureCount
impl Sync for HardwareFailureCount
impl Unpin for HardwareFailureCount
impl UnwindSafe for HardwareFailureCount
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