feat(core): add helper methods and better construction for Interval
This commit is contained in:
parent
86138fe213
commit
a54ec8a69f
2 changed files with 73 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue