Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::RemoteStore::ConnectionHandle Struct Reference

#include <remote-store-connection.hh>

Public Member Functions

 ConnectionHandle (Pool< RemoteStore::Connection >::Handle &&handle)
 ConnectionHandle (ConnectionHandle &&h) noexcept
RemoteStore::Connection & operator* ()
RemoteStore::Connection * operator-> ()
void processStderr (Sink *sink=0, Source *source=0, bool flush=true, bool block=true)
void withFramedSink (fun< void(Sink &sink)> sendData)

Public Attributes

Pool< RemoteStore::Connection >::Handle handle
bool daemonException = false

Detailed Description

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.


The documentation for this struct was generated from the following files: