juiz_core 0.0.11

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
14
15
use std::time::Duration;

use crate::prelude::*;

pub trait Broker: std::fmt::Debug + 'static {
    fn start(&mut self) -> JuizResult<()>;

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

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

    fn identifier(&self) -> BrokerIdentifier;

    fn profile(&self) -> BrokerProfile;
}