Skip to main content

spsc_mailbox

Function spsc_mailbox 

Source
pub fn spsc_mailbox<T, Codec, const BYTES: usize>(
    capacity: usize,
) -> Result<SpscEndpoints<T, Codec, BYTES>, SpscCreateError>
where T: Copy + Send + Sync + 'static, Codec: SpscCodec<T, BYTES>,
Expand description

Creates one bounded mailbox and its two unique endpoints.