Expand description
Utility functions and types used throughout the composefs crate.
This module provides common functionality including error handling helpers, I/O utilities for reading data streams, SHA256 digest parsing, and filesystem operations like atomic symlink replacement.
TraitsΒ§
- Errno
Filter π
FunctionsΒ§
- generate_
tmpname π - parse_
sha256 - Parse a string containing a SHA256 digest in hexidecimal form into a Sha256Digest.
- proc_
self_ πfd - Formats a string like β/proc/self/fd/3β for the given fd. This can be used to work with kernel APIs that donβt directly accept file descriptors.
- read_
exactish - This function reads the exact amount of bytes required to fill the buffer, possibly performing multiple reads to do so (and also retrying if required to deal with EINTR).
- read_
exactish_ async - This function reads the exact amount of bytes required to fill the buffer, possibly performing multiple reads to do so (and also retrying if required to deal with EINTR).
- replace_
symlinkat π
Type AliasesΒ§
- Sha256
Digest - A utility type representing a SHA-256 digest in binary.