pub enum Outcome {
Complete,
LimitReached,
Invalid(Error),
WrongMeter(Option<Address>),
NoReply,
}Expand description
How a readout ended: see Readout::outcome.
Variants§
Complete
The meter sent its last telegram (no “more records follow”), or answered E5
instead of data: every record was read.
LimitReached
The meter still has records, but Readout::max_telegrams telegrams were read.
The telegrams delivered are only the first part of the meter’s data.
Invalid(Error)
A reply was not a decodable telegram, or one of its records is broken (so
whether more follow is unknown); Error::InvalidAddress for 251, 252 and 255.
WrongMeter(Option<Address>)
A telegram came from another meter than expected (Readout::expect_meter, the
selection of a secondary target, or the first telegram of this readout). It was
not delivered. The identity is the one that answered (None: it sent none).
NoReply
No valid reply after every retry.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl Move for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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