pub enum FoodInjectionError {
RelayManagerSend {
location: String,
device: AquariumDevice,
source: AquaChannelError,
},
RelayManagerReceive {
location: String,
device: AquariumDevice,
source: AquaChannelError,
},
UndefinedTargetState(String, AquariumDevice),
}Expand description
Contains error definition for FoodInjection
Variants§
RelayManagerSend
Occurs when sending a command to the relay manager via an MPSC channel fails. This typically happens if the receiving end (the relay manager) has been dropped.
RelayManagerReceive
Occurs when waiting for a confirmation message from the relay manager fails. This usually indicates that the relay manager’s sending channel was dropped, preventing a response from ever being sent.
UndefinedTargetState(String, AquariumDevice)
An invalid or unexpected target state was requested for a device. The device should only be turned ON or OFF.
Trait Implementations§
Source§impl Clone for FoodInjectionError
impl Clone for FoodInjectionError
Source§fn clone(&self) -> FoodInjectionError
fn clone(&self) -> FoodInjectionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FoodInjectionError
impl Debug for FoodInjectionError
Source§impl Display for FoodInjectionError
impl Display for FoodInjectionError
Source§impl Error for FoodInjectionError
impl Error for FoodInjectionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FoodInjectionError
impl RefUnwindSafe for FoodInjectionError
impl Send for FoodInjectionError
impl Sync for FoodInjectionError
impl Unpin for FoodInjectionError
impl UnwindSafe for FoodInjectionError
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