summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-19 16:14:14 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-19 16:14:14 +0000
commit17893388feed5f91ebd254ac7ad8e2801ca8a6d0 (patch)
treec4fb2710eb264562aa3721dadf5f43b183c6f42d /src/error.rs
parentfbee478ad333732982f7e0eecdcc3681a6d71f2f (diff)
Place barrier and waiters in their own modules
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 6b9f5d5..20563b1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -39,3 +39,14 @@ impl From<futures::Canceled> for Error {
}
}
}
+
+use std::sync::mpsc::SendError;
+
+impl<T> From<SendError<T>> for Error {
+
+ fn from(_err: SendError<T>) -> Error {
+ Error {
+ inner: Kind::ClientError("Channel unexpectedly closed".to_owned())
+ }
+ }
+}