@@ -1532,7 +1532,9 @@ impl<T: Send> error::Error for TrySendError<T> {
1532
1532
#[ stable( feature = "mpsc_error_conversions" , since = "1.24.0" ) ]
1533
1533
impl < T > From < SendError < T > > for TrySendError < T > {
1534
1534
/// Converts a `SendError<T>` into a `TrySendError<T>`.
1535
+ ///
1535
1536
/// This conversion always returns a `TrySendError::Disconnected` containing the data in the `SendError<T>`.
1537
+ ///
1536
1538
/// No data is allocated on the heap.
1537
1539
fn from ( err : SendError < T > ) -> TrySendError < T > {
1538
1540
match err {
@@ -1580,7 +1582,9 @@ impl error::Error for TryRecvError {
1580
1582
#[ stable( feature = "mpsc_error_conversions" , since = "1.24.0" ) ]
1581
1583
impl From < RecvError > for TryRecvError {
1582
1584
/// Converts a `RecvError` into a `TryRecvError`.
1585
+ ///
1583
1586
/// This conversion always returns `TryRecvError::Disconnected`.
1587
+ ///
1584
1588
/// No data is allocated on the heap.
1585
1589
fn from ( err : RecvError ) -> TryRecvError {
1586
1590
match err {
@@ -1613,7 +1617,9 @@ impl error::Error for RecvTimeoutError {
1613
1617
#[ stable( feature = "mpsc_error_conversions" , since = "1.24.0" ) ]
1614
1618
impl From < RecvError > for RecvTimeoutError {
1615
1619
/// Converts a `RecvError` into a `RecvTimeoutError`.
1620
+ ///
1616
1621
/// This conversion always returns `RecvTimeoutError::Disconnected`.
1622
+ ///
1617
1623
/// No data is allocated on the heap.
1618
1624
fn from ( err : RecvError ) -> RecvTimeoutError {
1619
1625
match err {
0 commit comments