pub trait Produce<'r, T> {
type Error: From<ConnectorXError> + Send;
// Required method
fn produce(&'r mut self) -> Result<T, Self::Error>;
}Expand description
A type implemented Produce<T> means that it can produce a value T by consuming part of it’s raw data buffer.
Required Associated Types§
Sourcetype Error: From<ConnectorXError> + Send
type Error: From<ConnectorXError> + Send
The error returned when the next value cannot be produced as T.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".