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

#include <file-descriptor.hh>

Public Attributes

std::optional< std::make_unsigned_t< off_t > > expectedSize = {}
bool block = true

Detailed Description

Options for draining a file descriptor to a sink.

Member Data Documentation

◆ block

bool nix::DrainFdSinkOpts::block = true

Whether to block on read.

◆ expectedSize

std::optional<std::make_unsigned_t<off_t> > nix::DrainFdSinkOpts::expectedSize = {}

If provided, read exactly this many bytes (throws EndOfFile if EOF occurs before reading all bytes).


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