mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
sync: derive PartialEq for error enums (#2137)
This commit is contained in:
parent
0bb17300f7
commit
a5e774bb38
@ -69,7 +69,7 @@ impl Error for RecvError {}
|
|||||||
|
|
||||||
/// This enumeration is the list of the possible reasons that try_recv
|
/// This enumeration is the list of the possible reasons that try_recv
|
||||||
/// could not return data when called.
|
/// could not return data when called.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum TryRecvError {
|
pub enum TryRecvError {
|
||||||
/// This channel is currently empty, but the Sender(s) have not yet
|
/// This channel is currently empty, but the Sender(s) have not yet
|
||||||
/// disconnected, so data may yet become available.
|
/// disconnected, so data may yet become available.
|
||||||
|
@ -40,7 +40,7 @@ pub mod error {
|
|||||||
pub struct RecvError(pub(super) ());
|
pub struct RecvError(pub(super) ());
|
||||||
|
|
||||||
/// Error returned by the `try_recv` function on `Receiver`.
|
/// Error returned by the `try_recv` function on `Receiver`.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum TryRecvError {
|
pub enum TryRecvError {
|
||||||
/// The send half of the channel has not yet sent a value.
|
/// The send half of the channel has not yet sent a value.
|
||||||
Empty,
|
Empty,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user