#[repr(u32)]pub enum ReportingMode {
Normal = 0,
Full = 1,
}Expand description
Defines the kind of error report to be generated when a failure is detected whith no bill being transported.
Variants§
Normal = 0
Normal reporting mode (default): on failure detection, a SimpleFailureReport will saved.
Full = 1
Full reporting mode: on failure detection, a BillTransportErrorReport will saved.
Implementations§
Source§impl ReportingMode
impl ReportingMode
Sourcepub const fn new() -> ReportingMode
pub const fn new() -> ReportingMode
Creates a new ReportingMode.
Sourcepub const fn create(val: u32) -> ReportingMode
pub const fn create(val: u32) -> ReportingMode
Creates a new ReportingMode from the provided parameter.
Source§impl ReportingMode
impl ReportingMode
Trait Implementations§
Source§impl Clone for ReportingMode
impl Clone for ReportingMode
Source§fn clone(&self) -> ReportingMode
fn clone(&self) -> ReportingMode
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 ReportingMode
impl Debug for ReportingMode
Source§impl Default for ReportingMode
impl Default for ReportingMode
Source§fn default() -> ReportingMode
fn default() -> ReportingMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReportingMode
impl<'de> Deserialize<'de> for ReportingMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReportingMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReportingMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ReportingMode
impl Display for ReportingMode
Source§impl From<&ReportingMode> for &'static str
impl From<&ReportingMode> for &'static str
Source§fn from(val: &ReportingMode) -> &'static str
fn from(val: &ReportingMode) -> &'static str
Converts to this type from the input type.
Source§impl From<&ReportingMode> for XfsMember
impl From<&ReportingMode> for XfsMember
Source§fn from(val: &ReportingMode) -> XfsMember
fn from(val: &ReportingMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ReportingMode> for XfsValue
impl From<&ReportingMode> for XfsValue
Source§fn from(val: &ReportingMode) -> XfsValue
fn from(val: &ReportingMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ReportingMode
impl From<&i32> for ReportingMode
Source§fn from(val: &i32) -> ReportingMode
fn from(val: &i32) -> ReportingMode
Converts to this type from the input type.
Source§impl From<&u32> for ReportingMode
impl From<&u32> for ReportingMode
Source§fn from(val: &u32) -> ReportingMode
fn from(val: &u32) -> ReportingMode
Converts to this type from the input type.
Source§impl From<ReportingMode> for &'static str
impl From<ReportingMode> for &'static str
Source§fn from(val: ReportingMode) -> &'static str
fn from(val: ReportingMode) -> &'static str
Converts to this type from the input type.
Source§impl From<ReportingMode> for XfsMember
impl From<ReportingMode> for XfsMember
Source§fn from(val: ReportingMode) -> XfsMember
fn from(val: ReportingMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<ReportingMode> for XfsValue
impl From<ReportingMode> for XfsValue
Source§fn from(val: ReportingMode) -> XfsValue
fn from(val: ReportingMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ReportingMode
impl From<i32> for ReportingMode
Source§fn from(val: i32) -> ReportingMode
fn from(val: i32) -> ReportingMode
Converts to this type from the input type.
Source§impl From<u32> for ReportingMode
impl From<u32> for ReportingMode
Source§fn from(val: u32) -> ReportingMode
fn from(val: u32) -> ReportingMode
Converts to this type from the input type.
Source§impl PartialEq for ReportingMode
impl PartialEq for ReportingMode
Source§impl Serialize for ReportingMode
impl Serialize for ReportingMode
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 ReportingMode
impl TryFrom<&XfsMember> for ReportingMode
Source§impl TryFrom<&XfsValue> for ReportingMode
impl TryFrom<&XfsValue> for ReportingMode
Source§impl TryFrom<XfsMember> for ReportingMode
impl TryFrom<XfsMember> for ReportingMode
Source§impl TryFrom<XfsValue> for ReportingMode
impl TryFrom<XfsValue> for ReportingMode
impl Copy for ReportingMode
impl StructuralPartialEq for ReportingMode
Auto Trait Implementations§
impl Freeze for ReportingMode
impl RefUnwindSafe for ReportingMode
impl Send for ReportingMode
impl Sync for ReportingMode
impl Unpin for ReportingMode
impl UnwindSafe for ReportingMode
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