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