Trait BufferProvider
trait BufferProvider: DynamicDataProvider<BufferMarker>
A data provider that returns opaque bytes.
Generally, these bytes are expected to be deserializable with Serde. To get an object
implementing DataProvider via Serde, use as_deserializing().
Passing a BufferProvider to a *_with_buffer_provider constructor requires enabling
the deserialization Cargo feature for the expected format(s):
deserialize_jsondeserialize_postcard_1deserialize_bincode_1
Along with DataProvider, this is one of the two foundational traits in this crate.
BufferProvider can be made into a trait object. It is used over FFI.
Examples
#
Implementors
impl<P: DynamicDataProvider<BufferMarker> + ?Sized> BufferProvider for P