Skip to main content

AsDeserializingBufferProvider

Trait AsDeserializingBufferProvider 

Source
pub trait AsDeserializingBufferProvider {
    // Required method
    fn as_deserializing(&self) -> DeserializingBufferProvider<'_, Self>;
}
Expand description

Blanket-implemented trait adding the Self::as_deserializing() function.

Enabled with the serde Cargo feature.

Required Methods§

Source

fn as_deserializing(&self) -> DeserializingBufferProvider<'_, Self>

Wrap this BufferProvider in a DeserializingBufferProvider.

This requires enabling the deserialization Cargo feature for the expected format(s):

  • deserialize_json
  • deserialize_postcard_1
  • deserialize_bincode_1

Enabled with the serde Cargo feature.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§