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

#include <common-protocol.hh>

Classes

struct  ReadConn
struct  WriteConn
struct  Serialise
struct  Serialise< std::string >
struct  Serialise< StorePath >
struct  Serialise< ContentAddress >
struct  Serialise< DrvOutput >
struct  Serialise< Realisation >
struct  Serialise< Signature >
struct  Serialise< std::vector< T > >
struct  Serialise< std::set< T, Compare > >
struct  Serialise< std::tuple< Ts... > >
struct  Serialise< std::map< K, V, Compare > >
struct  Serialise< std::optional< StorePath > >
struct  Serialise< std::optional< ContentAddress > >
struct  Serialise< BuildResultStatus >
struct  Serialise< Verbosity >

Static Public Member Functions

template<typename T>
static void write (const StoreDirConfig &store, WriteConn conn, const T &t)

Detailed Description

Shared serializers between the worker protocol, serve protocol, and a few others.

This struct is basically just a namespace; We use a type rather than a namespace just so we can use it as a template argument.

Member Function Documentation

◆ write()

template<typename T>
void nix::CommonProto::write ( const StoreDirConfig & store,
WriteConn conn,
const T & t )
inlinestatic

Wrapper function around CommonProto::Serialise<T>::write that allows us to infer the type instead of having to write it down explicitly.


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