mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-15 01:45:58 -04:00
instruments
This commit is contained in:
parent
c69dabf721
commit
76f5052960
28 changed files with 997 additions and 757 deletions
|
@ -58,6 +58,7 @@ impl DartIsolateWrapper {
|
|||
Err(e) => self.err_json(e),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn result_json<T: Serialize + Debug, E: Serialize + Debug>(
|
||||
self,
|
||||
result: Result<T, E>,
|
||||
|
@ -67,6 +68,7 @@ impl DartIsolateWrapper {
|
|||
Err(e) => self.err_json(e),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn ok<T: IntoDart>(self, value: T) -> bool {
|
||||
self.isolate
|
||||
.post(vec![MESSAGE_OK.into_dart(), value.into_dart()])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue