flatbuffers-tonic 0.1.2

gRPC with flatbuffers for Rust.
Documentation
1
2
3
4
5
6
7
8
9
/// trait for codec to deal with owned flatbuffer
/// All tonic flatbuffer wrappers needs to implement this.
pub trait OwnedFBCodecable {
    fn new_from_bytes(buf: bytes::Bytes) -> Result<Self, flatbuffers::InvalidFlatbuffer>
    where
        Self: Sized;

    fn into_bytes(self) -> bytes::Bytes;
}