impl Error for SendError
//! A multi-producer, single-consumer, futures-aware, FIFO queue.
-use std::any::Any;
use std::collections::VecDeque;
-use std::error::Error;
use std::fmt;
+use std::error::Error;
use std::pin::Pin;
use std::task::{Context, Poll};
@@ -173,6 +172,8 @@ impl<T> Drop for Receiver<T> {
/// dropped
pub struct SendError<T>(T);
+impl<T> Error for SendError<T> {}
+
impl<T> fmt::Debug for SendError<T> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_tuple("SendError").field(&"...").finish()
