|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <remote-store-connection.hh>
Public Member Functions | |
| ConnectionHandle (Pool< RemoteStore::Connection >::Handle &&handle, Sync< ThreadPool > &handlerThreads) | |
| ConnectionHandle (ConnectionHandle &&h) | |
| RemoteStore::Connection & | operator* () |
| RemoteStore::Connection * | operator-> () |
| void | processStderr (Sink *sink=0, Source *source=0, bool flush=true) |
| void | withFramedSink (std::function< void(Sink &sink)> fun) |
| kj::Promise< Result< void > > | withFramedSinkAsync (std::function< kj::Promise< Result< void > >(Sink &sink)> fun) |
Public Attributes | |
| Pool< RemoteStore::Connection >::Handle | handle |
| Sync< ThreadPool > & | handlerThreads |
| bool | daemonException = false |
A wrapper around Pool<RemoteStore::Connection>::Handle that marks the connection as bad (causing it to be closed) if a non-daemon exception is thrown before the handle is closed. Such an exception causes a deviation from the expected protocol and therefore a desynchronization between the client and daemon.