pub fn decode<T>(&self, buffer: &[u8]) -> Result<T, Box<dyn Error>>
    where
        T: DeserializeOwned,
    {
        let response = self.config.deserialize_from(buffer)?;
        Ok(response)
    }
/// Decode supplied data.
///
/// Returns a Result which contains either the Response or an error.
Decode supplied data.
Returns a Result which contains either the Response or an error.
Decode supplied data . Returns a Result which contains either the Response or an error .
pub fn decode<T>(&self, buffer: &[u8]) -> Result<T, Box<dyn Error>>
    where
        T: DeserializeOwned,
    {
        let response = self.config.deserialize_from(buffer)?;
        Ok(response)
    }
pub fn decode < T > ( & self , buffer : & [ u8 ] ) -> Result < T , Box < dyn Error > > where T : DeserializeOwned , { let response = self . config . deserialize_from ( buffer ) ? ; Ok ( response ) }
Decode supplied data.
Decode supplied data .
&self
buffer
&[u8]
&self
buffer
&[u8]