pub enum Event<'a> {
NeedMore,
Telegram(Application<'a>),
Found(Address),
Ambiguous(SecondaryAddress),
Acknowledged,
Retrying,
NoReply,
Invalid(Error),
}Expand description
What happened when a reply (or its absence) was handed to a state machine.
Variants§
NeedMore
The bytes are the start of a frame: read more and call reply again with all of
them.
Telegram(Application<'a>)
A telegram with records (for a readout).
Found(Address)
A meter was found (for a search).
Ambiguous(SecondaryAddress)
Several meters share this full identification number; select them with
select_enhanced (fabrication number) or by manufacturer, version and medium.
Acknowledged
The slave acknowledged (E5).
Retrying
No valid reply; the request will be repeated.
NoReply
No valid reply after every retry: the slave does not answer.
Invalid(Error)
A valid frame that cannot be decoded as a telegram.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> Move for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'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