pub trait ProtocolObject<'a>: ProtocolObjectInner<'a> {
    fn version() -> (u16, u16) { ... }
    fn to_bytes(&self) -> Box<[u8]> { ... }
    fn from_bytes(bytes: &'a [u8]) -> Result<Self, DeserializationError> { ... }
}
Expand description

This is a versioned protocol object.

Provided Methods

supported by the current implementation.

Serializes the object.

Attempts to deserialize the object.

Implementors