Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
remote-store-connection.hh
Go to the documentation of this file.
1#pragma once
3
4#include "remote-store.hh"
5#include "worker-protocol.hh"
7#include "pool.hh"
8
9namespace nix {
10
20{
24 std::chrono::time_point<std::chrono::steady_clock> startTime;
25};
26
35{
37 bool daemonException = false;
38
39 ConnectionHandle(Pool<RemoteStore::Connection>::Handle && handle)
40 : handle(std::move(handle))
41 { }
42
43 ConnectionHandle(ConnectionHandle && h) noexcept
44 : handle(std::move(h.handle))
45 { }
46
47 ~ConnectionHandle();
48
49 RemoteStore::Connection & operator * () { return *handle; }
50 RemoteStore::Connection * operator -> () { return &*handle; }
51
52 void processStderr(Sink * sink = 0, Source * source = 0, bool flush = true, bool block = true);
53
54 void withFramedSink(std::function<void(Sink & sink)> fun);
55};
56
57}
Definition pool.hh:101
std::function< void(Sink &)> fun
Definition lexer.l:3485
Definition remote-store-connection.hh:35
Definition remote-store-connection.hh:20
std::chrono::time_point< std::chrono::steady_clock > startTime
Definition remote-store-connection.hh:24
Definition serialise.hh:20
Definition serialise.hh:68
Definition worker-protocol-connection.hh:65
Definition worker-protocol.hh:191