pub trait Consume<T> {
type Error: From<ConnectorXError> + Send;
// Required method
fn consume(&mut self, value: T) -> Result<(), Self::Error>;
}
Expand description
A type implemented Consume<T>
means that it can consume a value T
by adding it to it’s own buffer.