pub struct Telegram<'a> {
pub checksum: u16,
pub prefix: &'a str,
pub identification: &'a str,
/* private fields */
}
Expand description
A P1 telegram from the metering system as per section 6.12.
Fields§
§checksum: u16
The verified CRC16 checksum of the telegram data.
prefix: &'a str
The first 3 characters of the datagram.
identification: &'a str
Metering system identification.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Telegram<'a>
impl<'a> RefUnwindSafe for Telegram<'a>
impl<'a> Send for Telegram<'a>
impl<'a> Sync for Telegram<'a>
impl<'a> Unpin for Telegram<'a>
impl<'a> UnwindSafe for Telegram<'a>
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