feat: error for invalid operations on signals
This commit is contained in:
parent
989da9ac92
commit
02070c1f5a
2 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ pub enum Error {
|
|||
({current_sample:?})"
|
||||
)]
|
||||
NonMonotonicSignal { end_time: Duration, current_sample: Duration },
|
||||
|
||||
#[error("invalid operation due to bad type")]
|
||||
InvalidOperation,
|
||||
}
|
||||
|
||||
pub type ArgusError = Error;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ use self::traits::{BaseSignal, LinearInterpolatable};
|
|||
use crate::{ArgusResult, Error};
|
||||
|
||||
/// All supported signal types in Argus
|
||||
#[derive(Debug, Clone, derive_more::From)]
|
||||
pub enum AnySignal {
|
||||
Bool(Signal<bool>),
|
||||
ConstBool(ConstantSignal<bool>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue