@@ -9,6 +9,7 @@ pub use crate::sync::mpsc::{RecvError, RecvTimeoutError, SendError, TryRecvError
99///
1010/// [`send_timeout`]: super::Sender::send_timeout
1111#[ derive( PartialEq , Eq , Clone , Copy ) ]
12+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
1213pub enum SendTimeoutError < T > {
1314 /// The message could not be sent because the channel is full and the operation timed out.
1415 ///
@@ -20,12 +21,14 @@ pub enum SendTimeoutError<T> {
2021 Disconnected ( T ) ,
2122}
2223
24+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
2325impl < T > fmt:: Debug for SendTimeoutError < T > {
2426 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2527 "SendTimeoutError(..)" . fmt ( f)
2628 }
2729}
2830
31+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
2932impl < T > fmt:: Display for SendTimeoutError < T > {
3033 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3134 match * self {
@@ -35,8 +38,10 @@ impl<T> fmt::Display for SendTimeoutError<T> {
3538 }
3639}
3740
41+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
3842impl < T > error:: Error for SendTimeoutError < T > { }
3943
44+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
4045impl < T > From < SendError < T > > for SendTimeoutError < T > {
4146 fn from ( err : SendError < T > ) -> SendTimeoutError < T > {
4247 match err {
0 commit comments