This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from tendermint/vendor-secret-connection
Vendor Secret Connection (fixes informalsystems/tendermint-rs#27)
- Loading branch information
Showing
11 changed files
with
689 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
//! Connections to a validator (TCP or Unix socket) | ||
pub mod secret_connection; | ||
pub mod tcp; | ||
pub mod unix; | ||
|
||
use self::{secret_connection::SecretConnection, unix::UnixConnection}; | ||
use std::io; | ||
|
||
/// Connections to a validator | ||
pub trait Connection: io::Read + io::Write + Sync + Send {} | ||
|
||
impl<T> Connection for tcp::SecretConnection<T> where T: io::Read + io::Write + Sync + Send {} | ||
impl<T> Connection for unix::UnixConnection<T> where T: io::Read + io::Write + Sync + Send {} | ||
impl<T> Connection for SecretConnection<T> where T: io::Read + io::Write + Sync + Send {} | ||
impl<T> Connection for UnixConnection<T> where T: io::Read + io::Write + Sync + Send {} |
Oops, something went wrong.