Trait jlrs::traits::multitask::ReturnChannel [−][src]
The ReturnChannel
trait is implemented by types that can send a result back to a caller. It
is implemented for both async_std::sync::Sender
and crossbeam_channel::Sender
.
Associated Types
Loading content...Required methods
#[must_use]fn send<'life0, 'async_trait>(
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send the result.
Implementations on Foreign Types
impl<T: Send + Sync + 'static> ReturnChannel for AsyncStdSender<JlrsResult<T>>
[src]
type T = T
fn send<'life0, 'async_trait>(
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<T: Send + Sync + 'static> ReturnChannel for CrossbeamSender<JlrsResult<T>>
[src]
type T = T
fn send<'life0, 'async_trait>(
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
response: JlrsResult<Self::T>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,