pub(crate) struct SharedWriter {
writer_tx: UnboundedSender<WriterCmd>,
bound: Duration,
}Expand description
Cloneable writer half of Subprocess - pushes onto the writer
task’s mpsc. Multiple clones can write concurrently; the writer
task serialises onto the child’s stdin in arrival order.
Returned by Subprocess::clone_writer. Used by detached
control_request dispatch.
Fields§
§writer_tx: UnboundedSender<WriterCmd>§bound: DurationThe writer task’s own bound, so this side can derive the wait that
outlasts it (see SharedWriter::ack_wait).
Implementations§
Trait Implementations§
Auto Trait Implementations§
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