Struct std::sync::mpsc::SendError 1.0.0[−][src]
pub struct SendError<T>(pub T);Expand description
从 通道 上的 Sender::send 或 SyncSender::send 函数返回错误。
仅当通道的接收端断开连接时,发送操作才会失败,这意味着永远无法接收到数据。 该错误包含作为有效载荷发送的数据,因此可以对其进行恢复。
Tuple Fields
0: TTrait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
将 SendError<T> 转换为 TrySendError<T>。
这种转换总是返回一个包含 SendError<T> 中数据的 TrySendError::Disconnected。
没有在堆上分配数据。