#[repr(u32)]pub enum ThresholdMode {
Sensor = 0,
Count = 1,
}
Expand description
Threshold mode used to determine the [ThresholdStatus] of a PCU.
Variants§
Sensor = 0
[ThresholdStatus] changes are determined by the sensors of the BNR (physical filling status).
Count = 1
[ThresholdStatus] changes are determined by comparing the PCU counts to the Threshold levels.
Implementations§
Source§impl ThresholdMode
impl ThresholdMode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ThresholdMode.
Sourcepub const fn create(val: u32) -> Self
pub const fn create(val: u32) -> Self
Creates a new ThresholdMode from the provided parameter.
Source§impl ThresholdMode
impl ThresholdMode
Trait Implementations§
Source§impl Clone for ThresholdMode
impl Clone for ThresholdMode
Source§fn clone(&self) -> ThresholdMode
fn clone(&self) -> ThresholdMode
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 ThresholdMode
impl Debug for ThresholdMode
Source§impl Default for ThresholdMode
impl Default for ThresholdMode
Source§fn default() -> ThresholdMode
fn default() -> ThresholdMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThresholdMode
impl<'de> Deserialize<'de> for ThresholdMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThresholdMode
impl Display for ThresholdMode
Source§impl From<&ThresholdMode> for &'static str
impl From<&ThresholdMode> for &'static str
Source§fn from(val: &ThresholdMode) -> Self
fn from(val: &ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for XfsMember
impl From<&ThresholdMode> for XfsMember
Source§fn from(val: &ThresholdMode) -> Self
fn from(val: &ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for XfsValue
impl From<&ThresholdMode> for XfsValue
Source§fn from(val: &ThresholdMode) -> Self
fn from(val: &ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for i32
impl From<&ThresholdMode> for i32
Source§fn from(val: &ThresholdMode) -> Self
fn from(val: &ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for u32
impl From<&ThresholdMode> for u32
Source§fn from(val: &ThresholdMode) -> Self
fn from(val: &ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<&i32> for ThresholdMode
impl From<&i32> for ThresholdMode
Source§impl From<&u32> for ThresholdMode
impl From<&u32> for ThresholdMode
Source§impl From<ThresholdMode> for &'static str
impl From<ThresholdMode> for &'static str
Source§fn from(val: ThresholdMode) -> Self
fn from(val: ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<ThresholdMode> for XfsMember
impl From<ThresholdMode> for XfsMember
Source§fn from(val: ThresholdMode) -> Self
fn from(val: ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<ThresholdMode> for XfsValue
impl From<ThresholdMode> for XfsValue
Source§fn from(val: ThresholdMode) -> Self
fn from(val: ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<ThresholdMode> for i32
impl From<ThresholdMode> for i32
Source§fn from(val: ThresholdMode) -> Self
fn from(val: ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<ThresholdMode> for u32
impl From<ThresholdMode> for u32
Source§fn from(val: ThresholdMode) -> Self
fn from(val: ThresholdMode) -> Self
Converts to this type from the input type.
Source§impl From<i32> for ThresholdMode
impl From<i32> for ThresholdMode
Source§impl From<u32> for ThresholdMode
impl From<u32> for ThresholdMode
Source§impl PartialEq for ThresholdMode
impl PartialEq for ThresholdMode
Source§impl Serialize for ThresholdMode
impl Serialize for ThresholdMode
Source§impl TryFrom<&XfsMember> for ThresholdMode
impl TryFrom<&XfsMember> for ThresholdMode
Source§impl TryFrom<&XfsValue> for ThresholdMode
impl TryFrom<&XfsValue> for ThresholdMode
Source§impl TryFrom<XfsMember> for ThresholdMode
impl TryFrom<XfsMember> for ThresholdMode
Source§impl TryFrom<XfsValue> for ThresholdMode
impl TryFrom<XfsValue> for ThresholdMode
impl Copy for ThresholdMode
impl StructuralPartialEq for ThresholdMode
Auto Trait Implementations§
impl Freeze for ThresholdMode
impl RefUnwindSafe for ThresholdMode
impl Send for ThresholdMode
impl Sync for ThresholdMode
impl Unpin for ThresholdMode
impl UnwindSafe for ThresholdMode
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