Nix 2.93.3
Lix: A modern, delicious implementation of the Nix 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< std::vector< T > >
struct  Serialise< std::set< T > >
struct  Serialise< std::tuple< Ts... > >
struct  Serialise< std::map< K COMMA_ V > >
struct  Serialise< std::optional< StorePath > >
struct  Serialise< std::optional< ContentAddress > >

Static Public Member Functions

template<typename T>
static WireFormatGenerator write (const Store &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>
WireFormatGenerator nix::CommonProto::write ( const Store & store,
WriteConn conn,
const T & t )
inlinestaticnodiscard

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: