pub fn bip_buffer_from<B: DerefMut<Target = [u8]> + 'static>(
) -> (BipBufferWriter, BipBufferReader)
Creates a new
BipBufferReader pair using the provided underlying storage.
BipBufferReader represent the send and receive side of the
single-producer single-consumer circular buffer respectively.
This method takes ownership of the storage which can be recovered with
BipBufferReader. If both sides of the channel have been dropped
try_unwrap), the storage is dropped.