![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <remote-store-connection.hh>
Public Attributes | |
| std::chrono::time_point< std::chrono::steady_clock > | startTime |
| LRUCache< StorePath, std::monostate > | tempRootsPinned {65536} |
| Public Attributes inherited from nix::WorkerProto::BasicConnection | |
| FdSink | to |
| FdSource | from |
| WorkerProto::Version | protoVersion |
| Public Attributes inherited from nix::WorkerProto::ClientHandshakeInfo | |
| std::optional< std::string > | daemonNixVersion |
| std::optional< TrustedFlag > | remoteTrustsUs |
Additional Inherited Members | |
| Public Member Functions inherited from nix::WorkerProto::BasicClientConnection | |
| virtual | ~BasicClientConnection () |
| virtual void | closeWrite ()=0 |
| std::exception_ptr | processStderrReturn (Sink *sink=0, Source *source=0, bool flush=true, bool block=true) |
| void | processStderr (bool *daemonException, Sink *sink=0, Source *source=0, bool flush=true, bool block=true) |
| ClientHandshakeInfo | postHandshake (const StoreDirConfig &store) |
| void | addTempRoot (const StoreDirConfig &remoteStore, bool *daemonException, const StorePath &path) |
| StorePathSet | queryValidPaths (const StoreDirConfig &remoteStore, bool *daemonException, const StorePathSet &paths, SubstituteFlag maybeSubstitute) |
| std::optional< UnkeyedValidPathInfo > | queryPathInfo (const StoreDirConfig &store, bool *daemonException, const StorePath &path) |
| void | putBuildDerivationRequest (const StoreDirConfig &store, bool *daemonException, const StorePath &drvPath, const BasicDerivation &drv, BuildMode buildMode) |
| BuildResult | getBuildDerivationResponse (const StoreDirConfig &store, bool *daemonException) |
| void | narFromPath (const StoreDirConfig &store, bool *daemonException, const StorePath &path, fun< void(Source &)> receiveNar) |
| Public Member Functions inherited from nix::WorkerProto::BasicConnection | |
| operator WorkerProto::ReadConn () | |
| operator WorkerProto::WriteConn () | |
| Public Member Functions inherited from nix::WorkerProto::ClientHandshakeInfo | |
| bool | operator== (const ClientHandshakeInfo &) const =default |
| Static Public Member Functions inherited from nix::WorkerProto::BasicClientConnection | |
| static Version | handshake (BufferedSink &to, Source &from, const Version &localVersion) |
Bidirectional connection (send and receive) used by the Remote Store implementation.
Contains Source and Sink for actual communication, along with other information learned when negotiating the connection.
| std::chrono::time_point<std::chrono::steady_clock> nix::RemoteStore::Connection::startTime |
Time this connection was established.
Paths already pinned as temp roots on this connection. Temp roots persist for the duration of the connection, so retransmission is not required. Skipping the wire call is an optional but worthwhile optimization that reduces communication overhead. LRU eviction would cost a round-trip.