pub trait InputProtocol {
type Proto: Send;
// Required method
fn create_from(
opcode: u16,
data: &[u8],
) -> Result<(usize, Self::Proto), InStreamError>;
}Expand description
Required Associated Types§
Required Methods§
fn create_from( opcode: u16, data: &[u8], ) -> Result<(usize, Self::Proto), InStreamError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.