pub struct ThresholdFull(/* private fields */);Expand description
The PCU ThresholdStatus becomes Full when the bill count is greater or equal to this value.
Implementations§
Source§impl ThresholdFull
impl ThresholdFull
Sourcepub const fn new() -> ThresholdFull
pub const fn new() -> ThresholdFull
Creates a new ThresholdFull.
Sourcepub const fn create(val: u32) -> ThresholdFull
pub const fn create(val: u32) -> ThresholdFull
Creates a new ThresholdFull from the provided parameter.
Sourcepub const fn inner(&self) -> u32
pub const fn inner(&self) -> u32
Gets the inner representation of ThresholdFull.
Sourcepub fn set_inner(&mut self, val: u32)
pub fn set_inner(&mut self, val: u32)
Gets the inner representation of ThresholdFull.
Trait Implementations§
Source§impl Clone for ThresholdFull
impl Clone for ThresholdFull
Source§fn clone(&self) -> ThresholdFull
fn clone(&self) -> ThresholdFull
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 ThresholdFull
impl Debug for ThresholdFull
Source§impl Default for ThresholdFull
impl Default for ThresholdFull
Source§fn default() -> ThresholdFull
fn default() -> ThresholdFull
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThresholdFull
impl<'de> Deserialize<'de> for ThresholdFull
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThresholdFull, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThresholdFull, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThresholdFull
impl Display for ThresholdFull
Source§impl From<&ThresholdFull> for XfsMember
impl From<&ThresholdFull> for XfsMember
Source§fn from(val: &ThresholdFull) -> XfsMember
fn from(val: &ThresholdFull) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ThresholdFull> for XfsValue
impl From<&ThresholdFull> for XfsValue
Source§fn from(val: &ThresholdFull) -> XfsValue
fn from(val: &ThresholdFull) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ThresholdFull
impl From<&i32> for ThresholdFull
Source§fn from(val: &i32) -> ThresholdFull
fn from(val: &i32) -> ThresholdFull
Converts to this type from the input type.
Source§impl From<&u32> for ThresholdFull
impl From<&u32> for ThresholdFull
Source§fn from(val: &u32) -> ThresholdFull
fn from(val: &u32) -> ThresholdFull
Converts to this type from the input type.
Source§impl From<ThresholdFull> for XfsMember
impl From<ThresholdFull> for XfsMember
Source§fn from(val: ThresholdFull) -> XfsMember
fn from(val: ThresholdFull) -> XfsMember
Converts to this type from the input type.
Source§impl From<ThresholdFull> for XfsValue
impl From<ThresholdFull> for XfsValue
Source§fn from(val: ThresholdFull) -> XfsValue
fn from(val: ThresholdFull) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ThresholdFull
impl From<i32> for ThresholdFull
Source§fn from(val: i32) -> ThresholdFull
fn from(val: i32) -> ThresholdFull
Converts to this type from the input type.
Source§impl From<u32> for ThresholdFull
impl From<u32> for ThresholdFull
Source§fn from(val: u32) -> ThresholdFull
fn from(val: u32) -> ThresholdFull
Converts to this type from the input type.
Source§impl PartialEq for ThresholdFull
impl PartialEq for ThresholdFull
Source§impl Serialize for ThresholdFull
impl Serialize for ThresholdFull
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 ThresholdFull
impl TryFrom<&XfsMember> for ThresholdFull
Source§impl TryFrom<&XfsValue> for ThresholdFull
impl TryFrom<&XfsValue> for ThresholdFull
Source§impl TryFrom<XfsMember> for ThresholdFull
impl TryFrom<XfsMember> for ThresholdFull
Source§impl TryFrom<XfsValue> for ThresholdFull
impl TryFrom<XfsValue> for ThresholdFull
impl Copy for ThresholdFull
impl StructuralPartialEq for ThresholdFull
Auto Trait Implementations§
impl Freeze for ThresholdFull
impl RefUnwindSafe for ThresholdFull
impl Send for ThresholdFull
impl Sync for ThresholdFull
impl Unpin for ThresholdFull
impl UnwindSafe for ThresholdFull
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