@@ -7,6 +7,7 @@ use crate::{error, fmt};
77///
88/// [`send_timeout`]: super::Sender::send_timeout
99#[ derive( PartialEq , Eq , Clone , Copy ) ]
10+ #[ unstable( feature = "mpmc_channel" , issue = "126840" ) ]
1011pub enum SendTimeoutError < T > {
1112 /// The message could not be sent because the channel is full and the operation timed out.
1213 ///
@@ -18,12 +19,14 @@ pub enum SendTimeoutError<T> {
1819 Disconnected ( T ) ,
1920}
2021
22+ #[ unstable( feature = "mpmc_channel" , issue = "126840" ) ]
2123impl < T > fmt:: Debug for SendTimeoutError < T > {
2224 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2325 "SendTimeoutError(..)" . fmt ( f)
2426 }
2527}
2628
29+ #[ unstable( feature = "mpmc_channel" , issue = "126840" ) ]
2730impl < T > fmt:: Display for SendTimeoutError < T > {
2831 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2932 match * self {
@@ -33,8 +36,10 @@ impl<T> fmt::Display for SendTimeoutError<T> {
3336 }
3437}
3538
39+ #[ unstable( feature = "mpmc_channel" , issue = "126840" ) ]
3640impl < T > error:: Error for SendTimeoutError < T > { }
3741
42+ #[ unstable( feature = "mpmc_channel" , issue = "126840" ) ]
3843impl < T > From < SendError < T > > for SendTimeoutError < T > {
3944 fn from ( err : SendError < T > ) -> SendTimeoutError < T > {
4045 match err {
0 commit comments