Skip to main content

InputPort

Trait InputPort 

Source
pub trait InputPort<T>: Port<T>
where T: Send,
{ // Required methods fn is_empty(&self) -> bool; fn recv<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, RecvError>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; // Provided method fn recv_all<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, RecvError>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Send + 'async_trait { ... } }

Required Methods§

Source

fn is_empty(&self) -> bool

Checks if this port is empty.

Source

fn recv<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, RecvError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Provided Methods§

Source

fn recv_all<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, RecvError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Send + 'async_trait,

Implementors§

Source§

impl<T, const N: usize> InputPort<T> for Inputs<T, N>
where T: Send + 'static,