pub struct TransientChildStdio { /* private fields */ }Expand description
Transient child: one process per batch exchange.
write_request spawns and writes; try_read_response reads that child’s
response and waits for exit. Overlapping batches each get their own child
(limited usefulness vs persistent when max_in_flight is large).
Implementations§
Source§impl TransientChildStdio
impl TransientChildStdio
pub fn new(command: Vec<String>, framer: FramerKind) -> Self
Trait Implementations§
Source§impl ExternalTransport for TransientChildStdio
impl ExternalTransport for TransientChildStdio
Source§fn write_request<'life0, 'life1, 'async_trait>(
&'life0 self,
batch_id: u64,
items: &'life1 [Vec<u8>],
kind: WireItemKind,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_request<'life0, 'life1, 'async_trait>(
&'life0 self,
batch_id: u64,
items: &'life1 [Vec<u8>],
kind: WireItemKind,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write one framed request (header + item lines) for
batch_id. Read moreAuto Trait Implementations§
impl !Freeze for TransientChildStdio
impl !RefUnwindSafe for TransientChildStdio
impl !UnwindSafe for TransientChildStdio
impl Send for TransientChildStdio
impl Sync for TransientChildStdio
impl Unpin for TransientChildStdio
impl UnsafeUnpin for TransientChildStdio
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