Trait dialectic::backend::Transmitter [−][src]
A backend transport used for transmitting (i.e. the Tx
parameter of Chan
)
must implement Transmitter
, which specifies what type of errors it might return, as well as
giving a method to send Choice
s across the channel. This is a super-trait of Transmit
,
which is what’s actually needed to receive particular values over a Chan
.
If you’re writing a function and need a lot of different Transmit<T>
bounds, the
Transmitter
attribute macro can help you specify them more
succinctly.
Associated Types
Loading content...Required methods
fn send_choice<'async_lifetime, const LENGTH: usize>(
&'async_lifetime mut self,
choice: Choice<LENGTH>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>>
[src]
&'async_lifetime mut self,
choice: Choice<LENGTH>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>>
Send any Choice<N>
using the Convention
specified by the trait implementation.