async_flow/error/
try_send_error.rs1use thiserror::Error;
4
5#[derive(Clone, Copy, Debug, Eq, Error, PartialEq)]
6#[error("TrySendError")]
7pub struct TrySendError;
8
9#[cfg(feature = "flume")]
10impl<T> From<flume::TrySendError<T>> for TrySendError {
11 fn from(_input: flume::TrySendError<T>) -> Self {
12 Self }
14}
15
16#[cfg(feature = "tokio")]
17impl<T> From<tokio::sync::mpsc::error::TrySendError<T>> for TrySendError {
18 fn from(_input: tokio::sync::mpsc::error::TrySendError<T>) -> Self {
19 Self }
21}