Change euph packet representation
This commit is contained in:
parent
03c1fe7f34
commit
a4a8174ea3
8 changed files with 506 additions and 415 deletions
|
|
@ -16,6 +16,7 @@ pub enum Error {
|
|||
|
||||
pub type Result<T> = result::Result<T, Error>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PendingReply<R> {
|
||||
timeout: Duration,
|
||||
result: Receiver<R>,
|
||||
|
|
@ -32,6 +33,7 @@ impl<R> PendingReply<R> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Replies<I, R> {
|
||||
timeout: Duration,
|
||||
pending: HashMap<I, Sender<R>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue