pub struct LauncherIpcHandle {
writer: Arc<Mutex<WriteHalf<NamedPipeClient>>>,
reader_task: JoinHandle<()>,
}Expand description
Handle the host holds for its lifetime so the launcher’s IPC pipe stays open. Dropping it closes the connection (launcher logs as a disconnect).
Cross-platform shape: the Windows variant carries the actual
pipe writer + reader-task handles; the non-Windows variant is
a unit-struct stub so connect_to_launcher keeps a uniform
Option<LauncherIpcHandle> return type. Phase 7’s cross-
platform IPC (Unix domain sockets) will fill the non-Windows
shape later. (reagent / codex P1 PR #573 round-1.)
Fields§
§writer: Arc<Mutex<WriteHalf<NamedPipeClient>>>Held purely as a keepalive; B.3+ will replace with a real command-sender that uses this writer.
reader_task: JoinHandle<()>Read-half task handle. Currently just consumes bytes off the wire and logs them. B.4+ replaces with an event dispatcher.
Auto Trait Implementations§
impl Freeze for LauncherIpcHandle
impl !RefUnwindSafe for LauncherIpcHandle
impl Send for LauncherIpcHandle
impl Sync for LauncherIpcHandle
impl Unpin for LauncherIpcHandle
impl !UnwindSafe for LauncherIpcHandle
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
§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.