[−][src]Trait kekbit_codecs::codecs::DataFormat
A data format that can be use by a kekbit channel
Required methods
fn id() -> u64
Returns the unique identifer of this data format. As a convention 'standard
data formats must have an id below 2^32, while application specific formats
should have an id equal or greater with 2^32
fn media_type() -> &'static str
Returns the media type associated with this codec. This value is just informative.
E.g for a Json encoder should return "application/json
Implementors
impl DataFormat for RawBinDataFormat
[src]
fn id() -> u64
[src]
Returns 2, the id of the most basic encoder.
fn media_type() -> &'static str
[src]
Returns "application/octet-stream"