#[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() -> ThresholdMode
pub const fn new() -> ThresholdMode
Creates a new ThresholdMode.
Sourcepub const fn create(val: u32) -> ThresholdMode
pub const fn create(val: u32) -> ThresholdMode
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<ThresholdMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThresholdMode, <__D as Deserializer<'de>>::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) -> &'static str
fn from(val: &ThresholdMode) -> &'static str
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for XfsMember
impl From<&ThresholdMode> for XfsMember
Source§fn from(val: &ThresholdMode) -> XfsMember
fn from(val: &ThresholdMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ThresholdMode> for XfsValue
impl From<&ThresholdMode> for XfsValue
Source§fn from(val: &ThresholdMode) -> XfsValue
fn from(val: &ThresholdMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ThresholdMode
impl From<&i32> for ThresholdMode
Source§fn from(val: &i32) -> ThresholdMode
fn from(val: &i32) -> ThresholdMode
Converts to this type from the input type.
Source§impl From<&u32> for ThresholdMode
impl From<&u32> for ThresholdMode
Source§fn from(val: &u32) -> ThresholdMode
fn from(val: &u32) -> ThresholdMode
Converts to this type from the input type.
Source§impl From<ThresholdMode> for &'static str
impl From<ThresholdMode> for &'static str
Source§fn from(val: ThresholdMode) -> &'static str
fn from(val: ThresholdMode) -> &'static str
Converts to this type from the input type.
Source§impl From<ThresholdMode> for XfsMember
impl From<ThresholdMode> for XfsMember
Source§fn from(val: ThresholdMode) -> XfsMember
fn from(val: ThresholdMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<ThresholdMode> for XfsValue
impl From<ThresholdMode> for XfsValue
Source§fn from(val: ThresholdMode) -> XfsValue
fn from(val: ThresholdMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ThresholdMode
impl From<i32> for ThresholdMode
Source§fn from(val: i32) -> ThresholdMode
fn from(val: i32) -> ThresholdMode
Converts to this type from the input type.
Source§impl From<u32> for ThresholdMode
impl From<u32> for ThresholdMode
Source§fn from(val: u32) -> ThresholdMode
fn from(val: u32) -> ThresholdMode
Converts to this type from the input type.
Source§impl PartialEq for ThresholdMode
impl PartialEq for ThresholdMode
Source§impl Serialize for ThresholdMode
impl Serialize for ThresholdMode
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 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