pub struct SecondaryAddress {
pub digits: [Option<u8>; 8],
pub manufacturer: Option<Manufacturer>,
pub version: Option<u8>,
pub medium: Option<Medium>,
}Expand description
A secondary address to select, each part optional (a wildcard).
The identification number is eight BCD digits; any digit may be a wildcard (F on
the wire). Manufacturer, version and medium are wildcarded as a whole.
Fields§
§digits: [Option<u8>; 8]The eight digits, most significant first; None is a wildcard.
manufacturer: Option<Manufacturer>Manufacturer, or any.
version: Option<u8>Version, or any.
medium: Option<Medium>Medium, or any.
Implementations§
Source§impl SecondaryAddress
impl SecondaryAddress
Sourcepub fn id(number: u32) -> Option<Self>
pub fn id(number: u32) -> Option<Self>
The meter with this identification number (up to 8 decimal digits), any
manufacturer, version and medium. None above 99 999 999.
Sourcepub fn exact(address: &Address) -> Self
pub fn exact(address: &Address) -> Self
Exactly this meter: number, manufacturer, version and medium.
Sourcepub fn pattern(text: &str) -> Option<Self>
pub fn pattern(text: &str) -> Option<Self>
Parse a pattern of 8 characters, digits or F/*/? wildcards, e.g.
"1234FFFF". Shorter patterns are padded with wildcards on the right.
Trait Implementations§
Source§impl Clone for SecondaryAddress
impl Clone for SecondaryAddress
impl Copy for SecondaryAddress
Source§impl Debug for SecondaryAddress
impl Debug for SecondaryAddress
Source§impl Display for SecondaryAddress
impl Display for SecondaryAddress
impl Eq for SecondaryAddress
Source§impl Hash for SecondaryAddress
impl Hash for SecondaryAddress
Source§impl PartialEq for SecondaryAddress
impl PartialEq for SecondaryAddress
impl StructuralPartialEq for SecondaryAddress
Auto Trait Implementations§
impl Forget for SecondaryAddress
impl Freeze for SecondaryAddress
impl Move for SecondaryAddress
impl RefUnwindSafe for SecondaryAddress
impl Send for SecondaryAddress
impl Sync for SecondaryAddress
impl Unpin for SecondaryAddress
impl UnsafeUnpin for SecondaryAddress
impl UnwindSafe for SecondaryAddress
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