Client / Server Support
This could be useful in a wide range of applications, if it had the capability to act in a client / server manner.
For example, GTK provides a useful tool for debugging and manipulating GTK widget properties in any GTK application externally with the GTK Inspector. A similar capability could be offered by this and OrbTk.
Varlink could be used as a protocol for communicating messages back and forth between a pipe, UNIX socket, TCP socket, scheme, etc.
I agree, thanks for the suggestion!
Although this may require changes in API, it does not seem too difficult to implement.
I expect it to be available over arbitrary std::io::Read + std::io::Write.
There can be something like
pub fn direct_with_io<H,IO>(settings: Settings, handler: H, io: IO) -> Result<(), PromptError> where
H: Handler + Send + Sync + 'static,
IO: std::io::Read + std::io::Write + ...,
with direct just delegating to it with a stdio-based IO.