Struct atm_async_utils::test_channel::TestSender
[−]
[src]
pub struct TestSender<I, E>(_);
The transmission end of a test channel.
This is built upon futures::channel::mpcs::sender
and panics if the underlying Sender
emits
an error.
Trait Implementations
impl<I, E> Sink for TestSender<I, E>
[src]
type SinkItem = Result<I, E>
The type of value that the sink accepts.
type SinkError = Never
The type of value produced by the sink when an error occurs.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Attempts to prepare the Sink
to receive a value. Read more
fn start_send(&mut self, item: Self::SinkItem) -> Result<(), Self::SinkError>
[src]
Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready
which returned Ok(Async::Ready(()))
. Read more
fn poll_flush(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Flush any remaining output from this sink. Read more
fn poll_close(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Flush any remaining output and close this sink, if necessary. Read more
Auto Trait Implementations
impl<I, E> Send for TestSender<I, E> where
E: Send,
I: Send,
E: Send,
I: Send,
impl<I, E> Sync for TestSender<I, E> where
E: Send,
I: Send,
E: Send,
I: Send,