juiz_core 0.0.5

Core library for JUIZ application. This package is not required if you want to build juiz functional module.
1
2
3
4
5
6
7
8
9
10
11
12
13

use std::time::Duration;

use crate::prelude::*;

pub trait Broker : JuizObject + 'static {

    fn start(&mut self) -> JuizResult<()>;

    fn wait_until_started(&mut self, timeout: Duration) -> JuizResult<()>;

    fn stop(&mut self) -> JuizResult<()>;
}