diff options
| author | Erik Hofmayer <ehofmayer@outlook.de> | 2020-09-21 21:31:01 +0200 |
|---|---|---|
| committer | Erik Hofmayer <ehofmayer@outlook.de> | 2020-09-21 21:31:01 +0200 |
| commit | 16eee2a04a4c3a93d398728d7a0c05a8afb6ca94 (patch) | |
| tree | 84bc0ff4b6d7f63415e5cc191df80422a27093a2 /library/std/src | |
| parent | 3f0f40904c18bce9915b5fe2a1d017f3906c0d26 (diff) | |
| download | rust-16eee2a04a4c3a93d398728d7a0c05a8afb6ca94.tar.gz rust-16eee2a04a4c3a93d398728d7a0c05a8afb6ca94.zip | |
Applied review comments
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sync/mpsc/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/src/sync/mpsc/mod.rs b/library/std/src/sync/mpsc/mod.rs index d23a8161a22..dc13c9433f1 100644 --- a/library/std/src/sync/mpsc/mod.rs +++ b/library/std/src/sync/mpsc/mod.rs @@ -1532,7 +1532,9 @@ impl<T: Send> error::Error for TrySendError<T> { #[stable(feature = "mpsc_error_conversions", since = "1.24.0")] impl<T> From<SendError<T>> for TrySendError<T> { /// Converts a `SendError<T>` into a `TrySendError<T>`. + /// /// This conversion always returns a `TrySendError::Disconnected` containing the data in the `SendError<T>`. + /// /// No data is allocated on the heap. fn from(err: SendError<T>) -> TrySendError<T> { match err { @@ -1580,7 +1582,9 @@ impl error::Error for TryRecvError { #[stable(feature = "mpsc_error_conversions", since = "1.24.0")] impl From<RecvError> for TryRecvError { /// Converts a `RecvError` into a `TryRecvError`. + /// /// This conversion always returns `TryRecvError::Disconnected`. + /// /// No data is allocated on the heap. fn from(err: RecvError) -> TryRecvError { match err { @@ -1613,7 +1617,9 @@ impl error::Error for RecvTimeoutError { #[stable(feature = "mpsc_error_conversions", since = "1.24.0")] impl From<RecvError> for RecvTimeoutError { /// Converts a `RecvError` into a `RecvTimeoutError`. + /// /// This conversion always returns `RecvTimeoutError::Disconnected`. + /// /// No data is allocated on the heap. fn from(err: RecvError) -> RecvTimeoutError { match err { |
