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, Diagnostic>
pub fn take(&self) -> Result<PipeWriter, Diagnostic>
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 Forget for OsPipeWriter
impl Freeze for OsPipeWriterwhere
*const ArcInner<Mutex<Option<PipeWriter>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<PipeWriter>>>>: Freeze,
impl Move for OsPipeWriter
impl RefUnwindSafe for OsPipeWriter
impl Send for OsPipeWriter
impl Sync for OsPipeWriter
impl Unpin for OsPipeWriter
impl UnsafeUnpin for OsPipeWriterwhere
*const ArcInner<Mutex<Option<PipeWriter>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<PipeWriter>>>>: UnsafeUnpin,
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