Trait AsyncQueue

Source
pub trait AsyncQueue {
    // Required methods
    async fn push(&self, s: Sid, a: &[u8]);
    async fn pop(&self, s: Sid, len: usize) -> impl Stream<Item = u8>;
}

Required Methods§

Source

async fn push(&self, s: Sid, a: &[u8])

Source

async fn pop(&self, s: Sid, len: usize) -> impl Stream<Item = u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§