1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
use std::error::Error;

pub trait Broadcast {
}

pub trait Unicast {
}

pub trait Wait {
    type Error: Error;

    fn wait(&self) -> Result<usize, Self::Error>;
}

pub trait Notify {
    type Error: Error;

    fn notify(&self) -> Result<(), Self::Error>;
}