Right now we create Bytes from a Vec for messages that are later drained by backends. But it would be nicer if we could receive Vecs once they are sent, for reuse. Backends could use Bytes::try_into_mut and store them in a buffer. Later, the integration crate could feed them back to Replicon.
Right now, no backend provides this feature, but once someone implements it, it's worth exploring.
Right now we create
Bytesfrom aVecfor messages that are later drained by backends. But it would be nicer if we could receiveVecs once they are sent, for reuse. Backends could useBytes::try_into_mutand store them in a buffer. Later, the integration crate could feed them back to Replicon.Right now, no backend provides this feature, but once someone implements it, it's worth exploring.