pub fn deserialize_from_with_limit<R: Read, T: DeserializeOwned>(
    read: &mut R,
    size_limit: u64,
) -> Result<T, DeserializationError> {
    bincode::DefaultOptions::new()
        .with_fixint_encoding()
        .allow_trailing_bytes()
        .with_limit(size_limit)
        .deserialize_from(read)
        .map_err(Into::into)
}
/// Deserialize a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialize a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialize a ` Deserialize ` type directly from a ` Read ` with max size limit specified .
pub fn deserialize_from_with_limit<R: Read, T: DeserializeOwned>(
    read: &mut R,
    size_limit: u64,
) -> Result<T, DeserializationError> {
    bincode::DefaultOptions::new()
        .with_fixint_encoding()
        .allow_trailing_bytes()
        .with_limit(size_limit)
        .deserialize_from(read)
        .map_err(Into::into)
}
pub fn deserialize_from_with_limit < R : Read , T : DeserializeOwned > ( read : & mut R , size_limit : u64 , ) -> Result < T , DeserializationError > { bincode :: DefaultOptions :: new ( ) . with_fixint_encoding ( ) . allow_trailing_bytes ( ) . with_limit ( size_limit ) . deserialize_from ( read ) . map_err ( Into :: into ) }
Deserialize a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialize a ` Deserialize ` type directly from a ` Read ` with max size limit specified .
read
&mut R
size_limit
u64
read
&mut R
size_limit
u64