diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/tokio/src/time/error.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/tokio/src/time/error.rs')
-rw-r--r-- | vendor/tokio/src/time/error.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vendor/tokio/src/time/error.rs b/vendor/tokio/src/time/error.rs index 8674febe9..71344d434 100644 --- a/vendor/tokio/src/time/error.rs +++ b/vendor/tokio/src/time/error.rs @@ -40,8 +40,11 @@ impl From<Kind> for Error { } } -/// Error returned by `Timeout`. -#[derive(Debug, PartialEq)] +/// Errors returned by `Timeout`. +/// +/// This error is returned when a timeout expires before the function was able +/// to finish. +#[derive(Debug, PartialEq, Eq)] pub struct Elapsed(()); #[derive(Debug)] @@ -72,7 +75,7 @@ impl Error { matches!(self.0, Kind::AtCapacity) } - /// Create an error representing a misconfigured timer. + /// Creates an error representing a misconfigured timer. pub fn invalid() -> Error { Error(Invalid) } |