Skip to content

Commit

Permalink
Merge pull request #35 from tikue/missing-debug
Browse files Browse the repository at this point in the history
Add missing Debug impls.
  • Loading branch information
shaladdle committed Apr 25, 2016
2 parents fe116a1 + 44eec09 commit e8ec295
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
## 0.5 (2016-04-24)

### Breaking Changes
0.5 adds support for arbitrary transports via the
[`Transport`](tarpc/src/transport/mod.rs#L7) trait.
Out of the box tarpc provides implementations for:

* Tcp, for types `impl`ing `ToSocketAddrs`.
* Unix sockets via the `UnixTransport` type.

This was a breaking change: `handler.local_addr()` was renamed
`handler.dialer()`.

## 0.4 (2016-04-02)

### Breaking Changes
Expand Down
2 changes: 2 additions & 0 deletions tarpc/src/transport/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::net::{SocketAddr, TcpListener, TcpStream, ToSocketAddrs};
use std::time::Duration;

/// A transport for TCP.
#[derive(Debug)]
pub struct TcpTransport<A: ToSocketAddrs>(pub A);

impl<A: ToSocketAddrs> super::Transport for TcpTransport<A> {
Expand Down Expand Up @@ -54,6 +55,7 @@ impl super::Stream for TcpStream {
}

/// Connects to a socket address.
#[derive(Debug)]
pub struct TcpDialer<A = SocketAddr>(pub A) where A: ToSocketAddrs;

impl<A> super::Dialer for TcpDialer<A>
Expand Down
2 changes: 2 additions & 0 deletions tarpc/src/transport/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::time::Duration;
use unix_socket::{UnixListener, UnixStream};

/// A transport for unix sockets.
#[derive(Debug)]
pub struct UnixTransport<P>(pub P) where P: AsRef<Path>;

impl<P> super::Transport for UnixTransport<P>
Expand All @@ -17,6 +18,7 @@ impl<P> super::Transport for UnixTransport<P>
}

/// Connects to a unix socket address.
#[derive(Debug)]
pub struct UnixDialer<P>(pub P) where P: AsRef<Path>;

impl<P> super::Dialer for UnixDialer<P>
Expand Down

0 comments on commit e8ec295

Please sign in to comment.