pub enum Event<'a> {
NeedMore,
Telegram(Application<'a>),
Found(Address),
Ambiguous(SecondaryAddress),
Acknowledged,
Retrying,
NoReply,
Invalid(Error),
Unreadable(SecondaryAddress),
WrongMeter(Option<Address>),
}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), from the addressed meter.
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.
Unreadable(SecondaryAddress)
A meter acknowledged this selection (for a search), but its reply to the read did not name a meter that matches it: no reply, no long header, or another identification number.
WrongMeter(Option<Address>)
A telegram from another meter than the readout expects (the identity that
answered; None when the telegram carries none). Not delivered; the readout ends.