pub struct ReaderWriterHandle<F, O> {
pub outbound: UnboundedSender<O>,
pub inbound: UnboundedReceiver<F>,
pub reader: JoinHandle<()>,
pub writer: JoinHandle<()>,
}Expand description
Handle returned by spawn_reader_writer. The orchestrator
surfaces the outbound tx, the inbound rx, and per-task
JoinHandles so the manager can await clean shutdown.
Fields§
§outbound: UnboundedSender<O>§inbound: UnboundedReceiver<F>§reader: JoinHandle<()>§writer: JoinHandle<()>Auto Trait Implementations§
impl<F, O> Freeze for ReaderWriterHandle<F, O>
impl<F, O> RefUnwindSafe for ReaderWriterHandle<F, O>
impl<F, O> Send for ReaderWriterHandle<F, O>
impl<F, O> Sync for ReaderWriterHandle<F, O>
impl<F, O> Unpin for ReaderWriterHandle<F, O>
impl<F, O> UnsafeUnpin for ReaderWriterHandle<F, O>
impl<F, O> UnwindSafe for ReaderWriterHandle<F, O>
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