pub struct OutputSender { /* private fields */ }Expand description
Opaque handle for sending events into a channel as InboundEvent::Direct.
All events sent through OutputSender bypass the subscription filter
on the receiving ChannelRunner. Use OutputSender::channel() to
create a matched sender/receiver pair for testing or external use.
Internally wraps mpsc::Sender<InboundEvent> without exposing
the InboundEvent type to external crates.
Implementations§
Source§impl OutputSender
impl OutputSender
Sourcepub fn channel(buffer: usize) -> (Self, OutputReceiver)
pub fn channel(buffer: usize) -> (Self, OutputReceiver)
Creates a matched (OutputSender, OutputReceiver) pair.
This is the public way to create a channel for use with
ChildSpawner and ChildContextImpl in integration tests
or external code.
Trait Implementations§
Source§impl Clone for OutputSender
impl Clone for OutputSender
Source§fn clone(&self) -> OutputSender
fn clone(&self) -> OutputSender
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutputSender
impl RefUnwindSafe for OutputSender
impl Send for OutputSender
impl Sync for OutputSender
impl Unpin for OutputSender
impl UnsafeUnpin for OutputSender
impl UnwindSafe for OutputSender
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more