|
|
|
@ -6,7 +6,7 @@ use crate::message::Message;
@@ -6,7 +6,7 @@ use crate::message::Message;
|
|
|
|
|
#[non_exhaustive] |
|
|
|
|
pub enum SenderError { |
|
|
|
|
Closed, |
|
|
|
|
Full |
|
|
|
|
Full, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
impl<T> From<mpsc::error::SendError<T>> for SenderError { |
|
|
|
@ -19,7 +19,7 @@ impl<T> From<mpsc::error::TrySendError<T>> for SenderError {
@@ -19,7 +19,7 @@ impl<T> From<mpsc::error::TrySendError<T>> for SenderError {
|
|
|
|
|
fn from(err: mpsc::error::TrySendError<T>) -> Self { |
|
|
|
|
match err { |
|
|
|
|
mpsc::error::TrySendError::Full(_) => SenderError::Full, |
|
|
|
|
mpsc::error::TrySendError::Closed(_) => SenderError::Closed |
|
|
|
|
mpsc::error::TrySendError::Closed(_) => SenderError::Closed, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|