summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-07-24 22:30:25 +0000
committerGitHub <noreply@github.com>2021-07-24 22:30:25 +0000
commite88a6cf2ec0b6bd042641f58618d6e72e2c624c4 (patch)
tree1e1c90155e1c84ad3f2f3929059e3b9513ea00d5 /CHANGELOG.md
parent7033d470d000a35236f157258c13dd50bc64725a (diff)
parent7fd7f27b2ef870ac20dff3d3e23fd32eecb4615f (diff)
downloadnix-e88a6cf2ec0b6bd042641f58618d6e72e2c624c4.zip
Merge #1465
1465: Enable creating a const TimeSpec r=asomers a=danieldulaney Previously, there was no way to create a `TimeSpec` in a `const` context because all creation was through traits. This adds two utility functions to create a `const TimeSpec` from a `libc::timespec` or an `std::time::Duration`. An alternative approach would be to make the inner `timespec` field `pub`, which would not require any additional functions but would expose some (potentially unwanted) implementation details. Co-authored-by: Daniel Dulaney <dulaney.daniel@gmail.com> Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c4bcaf2..03d2ef1a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## [Unreleased] - ReleaseDate
### Added
+- Added `TimeSpec::from_duration` and `TimeSpec::from_timespec`
+ (#[1465](https://github.com/nix-rust/nix/pull/1465))
+
- Added `IPV6_V6ONLY` sockopt.
(#[1470](https://github.com/nix-rust/nix/pull/1470))