pub enum ConformityLevel {
BasicIdentificationStreamOnly,
RegularIdentificationStreamOnly,
ExtendedIdentificationStreamOnly,
BasicIdentification,
RegularIdentification,
ExtendedIdentification,
}Expand description
Types Represents the conformity level of a Modbus device’s identification support.
Indicates what types of identification objects a device supports, and whether access is limited to stream access or includes individual access.
Variants§
BasicIdentificationStreamOnly
Only basic identification objects via stream access (0x01).
RegularIdentificationStreamOnly
Only regular identification objects via stream access (0x02).
ExtendedIdentificationStreamOnly
Only extended identification objects via stream access (0x03).
BasicIdentification
Basic identification objects, with individual access supported (0x81).
RegularIdentification
Regular identification objects, with individual access supported (0x82).
ExtendedIdentification
Extended identification objects, with individual access supported (0x83).
Implementations§
Source§impl ConformityLevel
impl ConformityLevel
Sourcepub const fn try_from_value(value: u8) -> Option<Self>
pub const fn try_from_value(value: u8) -> Option<Self>
Attempts to convert a raw u8 to a ConformityLevel.
§Parameters
value: The raw byte representing the device’s conformity level.
§Returns
Some(ConformityLevel)if the value matches a known level.Nonefor unrecognized values.
Trait Implementations§
Source§impl Clone for ConformityLevel
impl Clone for ConformityLevel
Source§fn clone(&self) -> ConformityLevel
fn clone(&self) -> ConformityLevel
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 ConformityLevel
impl Debug for ConformityLevel
Source§impl PartialEq for ConformityLevel
impl PartialEq for ConformityLevel
impl Copy for ConformityLevel
impl Eq for ConformityLevel
impl StructuralPartialEq for ConformityLevel
Auto Trait Implementations§
impl Freeze for ConformityLevel
impl RefUnwindSafe for ConformityLevel
impl Send for ConformityLevel
impl Sync for ConformityLevel
impl Unpin for ConformityLevel
impl UnwindSafe for ConformityLevel
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