pub struct ScriptPipe { /* private fields */ }Expand description
One script pipe: shared backend plus its shared reader half.
Implementations§
Source§impl ScriptPipe
impl ScriptPipe
Sourcepub fn with_thresholds(spill_threshold: usize, max_backlog: u64) -> Self
pub fn with_thresholds(spill_threshold: usize, max_backlog: u64) -> Self
Pipe with explicit thresholds. Tests use small values to exercise the spill path without multi-megabyte payloads.
Sourcepub fn reader(&self) -> SharedInput
pub fn reader(&self) -> SharedInput
Shared reader half for stdin bindings.
Sourcepub fn endpoint(&self) -> ScriptPipeEndpoint
pub fn endpoint(&self) -> ScriptPipeEndpoint
Fresh writer-side endpoint for stdout/stderr bindings. Each
endpoint mints one attached writer when resolved to a stream.
Sourcepub fn pipe_inner(&self) -> Arc<PipeInner> ⓘ
pub fn pipe_inner(&self) -> Arc<PipeInner> ⓘ
Backend for keepers, peeks, and diagnostics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptPipe
impl RefUnwindSafe for ScriptPipe
impl Send for ScriptPipe
impl Sync for ScriptPipe
impl Unpin for ScriptPipe
impl UnsafeUnpin for ScriptPipe
impl UnwindSafe for ScriptPipe
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