Recv

Trait Recv 

Source
pub trait Recv<Protocol, App, const ROLE: u8> {
    type Msg;
    type Addr;

    // Required method
    fn recv_msg(&mut self, remote: &Self::Addr, msg: Self::Msg);
}
Expand description

Designing everything for a pratical system is hard. Designing everything correctly is impossible. That’s why a versioned spec module is prepared.

At any time top level module does wildcard re-exporting from the latest version of spec. To survive from a breaking change, change use crate::* to use crate::spec::v1::*.

Required Associated Types§

Required Methods§

Source

fn recv_msg(&mut self, remote: &Self::Addr, msg: Self::Msg)

Implementors§

Source§

impl<T: Client<A>, A: App> Recv<Unreplicated, A, { Role::Client as u8 }> for T

Source§

impl<T: Server<A>, A: App> Recv<Unreplicated, A, { Role::Server as u8 }> for T
where ServerState<Self, A>: Execute<A>,