[−][src]Trait keebrs::net::Net
A generic keyboard network.
It accepts messages to either send to all other boards, or to one specific
one via the Sink trait. When sending a message, the from
field should be
left 0
in order to be filled in by the net implementation.
It receives messages via the Stream
trait.
On startup, it should wait on the poll_init
method to return Poll::Ready
,
or for USB detection indicating that it is the "primary" board. If it is
determined to be the primary, it should initialize the other boards with
poll_init_others
.
Required methods
fn addr(&self) -> i8
Implementors
impl<R: RawMutex, T> Net<T> for Background<R, T>
[src]
impl<T, LW, LR, RW, RR> Net<T> for ChainNet<T, LW, LR, RW, RR> where
T: Serialize + DeserializeOwned + Clone + Debug,
LW: Write,
LR: Read,
RW: Write<Error = LW::Error>,
RR: Read<Error = LR::Error>,
[src]
T: Serialize + DeserializeOwned + Clone + Debug,
LW: Write,
LR: Read,
RW: Write<Error = LW::Error>,
RR: Read<Error = LR::Error>,