pub enum TeleinfoError {
EndOfFile,
IoError(Error),
EndOfTransmission,
FrameError(String),
ChecksumError,
}
Expand description
Possible fatal or non-fatal errors when reading frames from the serial port.
Variants§
EndOfFile
Channel is closed.
IoError(Error)
A input/output error was encountered.
EndOfTransmission
The transmission was interupted, for example because of external reading of the meter current value. Reading a new frame can be tried.
FrameError(String)
One tag had unexpected form, maybe because of transmission error. Try reading a new frame.
ChecksumError
One tag had wrong checksum, maybe because of transmission error. Try reading a new frame.
Trait Implementations§
Source§impl Debug for TeleinfoError
impl Debug for TeleinfoError
Source§impl From<Error> for TeleinfoError
impl From<Error> for TeleinfoError
Source§fn from(err: Error) -> TeleinfoError
fn from(err: Error) -> TeleinfoError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TeleinfoError
impl !RefUnwindSafe for TeleinfoError
impl Send for TeleinfoError
impl Sync for TeleinfoError
impl Unpin for TeleinfoError
impl !UnwindSafe for TeleinfoError
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