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

#include <serve-protocol.hh>

Public Member Functions

constexpr auto operator<=> (const Version &) const =default
constexpr unsigned int toWire () const

Static Public Member Functions

static constexpr Version fromWire (unsigned int wire)

Public Attributes

unsigned int major
uint8_t minor

Detailed Description

Version type for the protocol.

Todo
Convert to struct with separate major vs minor fields.

Member Function Documentation

◆ fromWire()

constexpr Version nix::ServeProto::Version::fromWire ( unsigned int wire)
inlinestaticconstexpr

Convert from wire format.

◆ toWire()

unsigned int nix::ServeProto::Version::toWire ( ) const
inlineconstexpr

Convert to wire format for protocol compatibility. Format: (major << 8) | minor


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