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

#include <serve-protocol.hh>

Classes

struct  Version
struct  ReadConn
struct  WriteConn
struct  BuildOptions
struct  Serialise< BuildResult >
struct  Serialise< DrvOutput >
struct  Serialise< UnkeyedRealisation >
struct  Serialise< Realisation >
struct  Serialise< UnkeyedValidPathInfo >
struct  Serialise< ServeProto::BuildOptions >
struct  Serialise< std::vector< T > >
struct  Serialise< std::set< T, Compare > >
struct  Serialise< std::tuple< Ts... > >
struct  Serialise< std::map< K, V, Compare > >
struct  BasicClientConnection
struct  BasicServerConnection
struct  Serialise

Public Types

enum struct  Command : uint64_t {
  QueryValidPaths = 1 , QueryPathInfos = 2 , DumpStorePath = 3 , ImportPaths = 4 ,
  BuildPaths = 6 , QueryClosure = 7 , BuildDerivation = 8 , AddToStoreNar = 9
}

Static Public Member Functions

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

Static Public Attributes

static constexpr Version latest

Detailed Description

The "serve protocol", used by ssh:// stores.

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 Enumeration Documentation

◆ Command

enum struct nix::ServeProto::Command : uint64_t
strong
Enumerator
ImportPaths 
Note
This is no longer used by Nix (as a client), but it is used by Hydra. We should therefore not remove it until Hydra no longer uses it either.

Member Function Documentation

◆ write()

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

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

Member Data Documentation

◆ latest

Version nix::ServeProto::latest
staticconstexpr
Initial value:
= {
.major = 2,
.minor = 8,
}

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