async_flow/error/
try_send_error.rs

1// This is free and unencumbered software released into the public domain.
2
3use 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 // TODO
13    }
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 // TODO
20    }
21}