use crossbeam_queue::{ArrayQueue, SegQueue}; use super::message::Message; enum BufferTypes { Unbound(SegQueue), Bound(ArrayQueue), } pub struct IpcBuffer { protocol: Protocol, buffer: BufferTypes, } pub struct Protocol {}