Skip to content

Commit

Permalink
Add documentation for TimestampOutOfSystemRangeError.
Browse files Browse the repository at this point in the history
  • Loading branch information
argv-minus-one committed Jun 6, 2021
1 parent a323f6e commit 88f5346
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ impl From<std::time::SystemTime> for Timestamp {
}
}

/// Indicates that a [`Timestamp`] could not be converted to
/// [`SystemTime`][std::time::SystemTime] because it is out of range.
///
/// The range of times that can be represented by `SystemTime` depends on the platform.
/// All `Timestamp`s are likely representable on 64-bit Unix-like platforms, but
/// other platforms, such as Windows and 32-bit Linux, may not be able to represent
/// the full range of `Timestamp`s.
#[cfg(feature = "std")]
#[derive(Debug)]
#[non_exhaustive]
Expand Down

0 comments on commit 88f5346

Please sign in to comment.