config: add async tasks and polling infrastructure
This commit is contained in:
parent
7fb68561e8
commit
d4d76c0ef3
13 changed files with 613 additions and 13 deletions
15
jay-config/src/_private/string_error.rs
Normal file
15
jay-config/src/_private/string_error.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use std::{
|
||||
error::Error,
|
||||
fmt::{Display, Formatter},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct StringError(pub String);
|
||||
|
||||
impl Display for StringError {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(&self.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl Error for StringError {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue