diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-19 16:14:14 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-19 16:14:14 +0000 |
commit | 17893388feed5f91ebd254ac7ad8e2801ca8a6d0 (patch) | |
tree | c4fb2710eb264562aa3721dadf5f43b183c6f42d /src/error.rs | |
parent | fbee478ad333732982f7e0eecdcc3681a6d71f2f (diff) |
Place barrier and waiters in their own modules
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 11 |
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()) + } + } +} |