Nix 2.26.3
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  Serialise
 
struct  Serialise< ContentAddress >
 
struct  Serialise< DrvOutput >
 
struct  Serialise< Realisation >
 
struct  Serialise< std::map< K COMMA_ V > >
 
struct  Serialise< std::optional< ContentAddress > >
 
struct  Serialise< std::optional< StorePath > >
 
struct  Serialise< std::set< T > >
 
struct  Serialise< std::string >
 
struct  Serialise< std::tuple< Ts... > >
 
struct  Serialise< std::vector< T > >
 
struct  Serialise< StorePath >
 
struct  WriteConn
 

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>
static 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: