Trait nero::protocol::Protocol
[−]
[src]
pub trait Protocol: Sized + Send + Sync + 'static { type ChanExt: ChanExtDefault + Send + Sync + Debug + 'static; type UserExt: UserExtDefault + Send + Sync + Debug + 'static; type ServExt: ServExtDefault + Send + Sync + Debug + 'static; type MemberExt: MemberExtDefault + Send + Sync + Debug + 'static; fn new() -> Self; fn start_handshake(
&mut self,
me: &mut NeroData<Self>,
ret: &mut Vec<Vec<u8>>
); fn process(
&self,
message: &[u8],
me: &mut NeroData<Self>,
ret: &mut Vec<Vec<u8>>
); }
Associated Types
type ChanExt: ChanExtDefault + Send + Sync + Debug + 'static
type UserExt: UserExtDefault + Send + Sync + Debug + 'static
type ServExt: ServExtDefault + Send + Sync + Debug + 'static
type MemberExt: MemberExtDefault + Send + Sync + Debug + 'static
Required Methods
fn new() -> Self
fn start_handshake(&mut self, me: &mut NeroData<Self>, ret: &mut Vec<Vec<u8>>)
fn process(
&self,
message: &[u8],
me: &mut NeroData<Self>,
ret: &mut Vec<Vec<u8>>
)
&self,
message: &[u8],
me: &mut NeroData<Self>,
ret: &mut Vec<Vec<u8>>
)
Implementors
impl Protocol for P10