pub enum ProtocolError {
NinaProtocolVersionMismatch,
CommunicationTimeout,
InvalidCommand,
InvalidNumberOfParameters,
TooManyParameters,
}
Expand description
Errors related to communication with NINA firmware
Variants§
NinaProtocolVersionMismatch
TODO: look at Nina Firmware code to understand conditions that lead to NinaProtocolVersionMismatch
CommunicationTimeout
A timeout occurred.
InvalidCommand
An invalid NINA command has been sent over the data bus.
InvalidNumberOfParameters
An invalid number of parameters sent over the data bus.
TooManyParameters
Too many parameters sent over the data bus.
Trait Implementations§
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Format for ProtocolError
impl Format for ProtocolError
Source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
Source§fn from(err: ProtocolError) -> Self
fn from(err: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
impl Eq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
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