feat(core): add helper methods and better construction for Interval

This commit is contained in:
Anand Balakrishnan 2023-05-14 16:37:57 -07:00
parent 86138fe213
commit a54ec8a69f
No known key found for this signature in database
2 changed files with 73 additions and 4 deletions

View file

@ -77,6 +77,13 @@ pub enum Error {
/// Type of the signal being cast to
to: &'static str,
},
/// Invalid interval
#[error("invalid interval: {reason}")]
InvalidInterval {
/// Reason for interval being invalid
reason: &'static str,
},
}
/// Alias for [`Error`](enum@Error)