Struct smbios::Decoder [−][src]
pub struct Decoder<T: Read> { /* fields omitted */ }
Decodes an SMBIOS data stream from an input Read trait object.
Methods
impl<T: Read> Decoder<T>
[src]
impl<T: Read> Decoder<T>
pub fn new(stream: T) -> Self
[src]
pub fn new(stream: T) -> Self
Creates a new Decoder by accepting an input stream with the Read trait.
pub fn decode(&mut self) -> Result<Vec<Structure>>
[src]
pub fn decode(&mut self) -> Result<Vec<Structure>>
Decodes a vector of SMBIOS structures from the Decoder's stream.