Skip to content

Commit c9ccd9a

Browse files
committed
Add documentation for Timestamping return type
1 parent cabe208 commit c9ccd9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/socket/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ pub enum ControlMessageOwned {
564564
ScmTimestampns(TimeSpec),
565565
/// Configurable nanoseconds resolution timestamps
566566
///
567+
/// Three `TimeSpec`s are returned in the control message. At least one field is non-zero at
568+
/// any time. Most timestamps are passed in ts[0]. Hardware timestamps are passed in ts[2].
569+
///
567570
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
568571
#[cfg(all(target_os = "linux"))]
569572
ScmTimestamping([TimeSpec; 3]),

0 commit comments

Comments
 (0)