1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Connections to a validator (TCP or Unix socket) use std::io; use tendermint_p2p::secret_connection::SecretConnection; use self::unix::UnixConnection; pub mod tcp; pub mod unix; /// Connections to a validator pub trait Connection: 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 {}