into_shared

Function into_shared 

pub fn into_shared(data: Vec<u8>) -> Bytes
Expand description

Wrap raw bytes as a shared Bytes handle for zero-copy fan-out.

Bytes::clone() is O(1) — it bumps an internal Arc refcount instead of copying the data. Use this when the same audio chunk must be broadcast to multiple subscribers.