forked from mirror/async-std
mark channel errs as unstable
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
32dce319d3
commit
7b7b959a6e
1 changed files with 4 additions and 0 deletions
|
@ -983,6 +983,8 @@ impl<T> Drop for Channel<T> {
|
|||
}
|
||||
|
||||
/// An error returned from the `try_send` method.
|
||||
#[cfg(feature = "unstable")]
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
pub enum TrySendError<T> {
|
||||
/// The channel is full but not disconnected.
|
||||
Full(T),
|
||||
|
@ -1012,6 +1014,8 @@ impl<T> Display for TrySendError<T> {
|
|||
}
|
||||
|
||||
/// An error returned from the `try_recv` method.
|
||||
#[cfg(feature = "unstable")]
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
#[derive(Debug)]
|
||||
pub enum TryRecvError {
|
||||
/// The channel is empty but not disconnected.
|
||||
|
|
Loading…
Reference in a new issue