Struct hdrhistogram::serialization::Deserializer [−][src]
pub struct Deserializer { /* fields omitted */ }
Deserializer for all supported formats.
Since the serialization formats all include some magic bytes that allow reliable identification of the different formats, only one Deserializer implementation is needed.
Methods
impl Deserializer
[src]
impl Deserializer
pub fn new() -> Deserializer
[src]
pub fn new() -> Deserializer
Create a new deserializer.
pub fn deserialize<T: Counter, R: Read>(
&mut self,
reader: &mut R
) -> Result<Histogram<T>, DeserializeError>
[src]
pub fn deserialize<T: Counter, R: Read>(
&mut self,
reader: &mut R
) -> Result<Histogram<T>, DeserializeError>
Deserialize an encoded histogram from the provided reader.
Note that &[u8]
and Cursor
are convenient implementations of Read
if you have some
bytes already in slice or Vec
form.
Trait Implementations
impl Default for Deserializer
[src]
impl Default for Deserializer
Auto Trait Implementations
impl Send for Deserializer
impl Send for Deserializer
impl Sync for Deserializer
impl Sync for Deserializer