pub struct OsPipeWriter { /* private fields */ }Expand description
Owned OS kernel pipe writer half behind a single use slot. See
OsPipeReader for the shared slot semantics. Moved verbatim from
oxdock-process; behavior is unchanged.
Implementations§
Source§impl OsPipeWriter
impl OsPipeWriter
Sourcepub fn take(&self) -> Result<PipeWriter, Error>
pub fn take(&self) -> Result<PipeWriter, Error>
Take the handle for Stdio::from. Bails deterministically if the
descriptor was already consumed so a second spawn can never reuse a
spent pipe or leave stdio unbound.
Sourcepub fn is_consumed(&self) -> bool
pub fn is_consumed(&self) -> bool
Whether this half was already taken. A poisoned slot reports live so callers never recycle what they cannot inspect.
Trait Implementations§
Source§impl Clone for OsPipeWriter
impl Clone for OsPipeWriter
Source§fn clone(&self) -> OsPipeWriter
fn clone(&self) -> OsPipeWriter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OsPipeWriter
impl RefUnwindSafe for OsPipeWriter
impl Send for OsPipeWriter
impl Sync for OsPipeWriter
impl Unpin for OsPipeWriter
impl UnsafeUnpin for OsPipeWriter
impl UnwindSafe for OsPipeWriter
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