Tests pass for reqnot
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use core::fmt;
|
||||
|
||||
use never::Never;
|
||||
|
||||
use super::coding::Coding;
|
||||
use crate::helpers::enc_vec;
|
||||
|
||||
@@ -13,8 +15,16 @@ pub trait Channel: 'static {
|
||||
type Req: Coding + Sized + 'static;
|
||||
type Notif: Coding + Sized + 'static;
|
||||
}
|
||||
impl Channel for Never {
|
||||
type Notif = Never;
|
||||
type Req = Never;
|
||||
}
|
||||
|
||||
pub trait MsgSet: Sync + 'static {
|
||||
type In: Channel;
|
||||
type Out: Channel;
|
||||
}
|
||||
impl MsgSet for Never {
|
||||
type In = Never;
|
||||
type Out = Never;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user