Tim Kuehn
72ab27713d
Remove superfluous block
2016-01-25 23:01:23 -08:00
Tim Kuehn
57c058dfbc
Use try! where applicable
2016-01-25 22:50:23 -08:00
Tim Kuehn
61e304ddfb
Merge branch 'crossbeam' into code-refactor
2016-01-25 22:31:46 -08:00
Tim Kuehn
0d1be7400b
Make type param single char
2016-01-25 22:31:13 -08:00
Tim Kuehn
382a232dcc
Merge branch 'crossbeam' into code-refactor
2016-01-25 21:49:54 -08:00
Tim Kuehn
bb53b5733f
Make 'f' a field of ConnectionHandler and rename ==> server
2016-01-25 21:49:31 -08:00
Tim Kuehn
3ec2322714
Merge branch 'crossbeam' into code-refactor
2016-01-25 21:38:15 -08:00
Tim Kuehn
5d50ccfb6f
Make read_stream a field of ConnectionHandler
2016-01-25 21:35:47 -08:00
Tim Kuehn
39706467ab
Factor out HashMap in reader into its own struct.
...
Precipitated by the clippy warning about complex types, but definitely makes the code more readable, as well.
2016-01-25 20:48:26 -08:00
Tim Kuehn
3cff1c0b62
cargo fmt
2016-01-24 23:07:24 -08:00
Tim Kuehn
4c2c072fff
Use non-moving closure, where possible
2016-01-24 23:04:56 -08:00
Tim Kuehn
132fbf368b
Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc into crossbeam
2016-01-24 18:33:17 -08:00
Tim Kuehn
854d2075f3
Use crossbeam scoped threads where possible
2016-01-24 18:32:50 -08:00
Tim
ff40c5dcfa
Merge branch 'expose-serve-handle' into 'master'
...
Re-export ServeHandle
See merge request !7
2016-01-25 07:08:13 +05:30
Adam Wright
d80de197b3
Re-export ServeHandle
2016-01-24 17:35:08 -08:00
Adam Wright
14ef89bbca
Change the commit hook to print something while its running tests
2016-01-24 17:29:38 -08:00
Adam Wright
195bd65e22
Merge branch 'deref-impl' into 'master'
...
impl<P> Service for P where P: Send + Sync + ::std::ops::Deref<Target=Service>
Fix #24
See merge request !6
2016-01-25 06:49:59 +05:30
Tim Kuehn
68445824af
Add a test, and change umbrella impl...
...
...to be for Deref<Target=S> where S: Service instead of Deref<Target=Service>.
2016-01-24 17:18:02 -08:00
Tim Kuehn
f46df2b07a
Merge branch 'master' into deref-impl
2016-01-24 17:09:09 -08:00
Adam Wright
b5c7e7bc41
Merge branch 'mod-attrs' into 'master'
...
Allow attributes on the generated module.
If no doc attribute is present, sets a default doc comment for the module.
See merge request !5
2016-01-25 06:32:09 +05:30
Tim Kuehn
23c0f43e49
Merge branch 'mod-attrs' into deref-impl
2016-01-24 16:58:26 -08:00
Tim Kuehn
57e39c77f7
Expand macro invocation test for attributes on items in the items { } block
2016-01-24 16:57:56 -08:00
Tim Kuehn
5afdaf88f8
Merge branch 'master' into deref-impl
2016-01-24 16:37:41 -08:00
Tim Kuehn
c3be60565b
Add an umbrella impl for Service for types that Deref to Service.
...
This means clients can only impl Service for types they define themselves, e.g. no longer for ()
2016-01-24 16:35:20 -08:00
Tim Kuehn
9bd7fc6711
Add missing license headers
2016-01-21 11:27:37 -08:00
Tim Kuehn
9224dcd00e
Add 'License' and 'Contributing' sections to README.
...
Also add .md file extension to CONTRIBUTING.
2016-01-21 11:10:13 -08:00
Tim Kuehn
feafd35add
Add CONTRIBUTING and LICENSE files, and add license header to source code files.
2016-01-21 11:06:17 -08:00
Tim Kuehn
ce12f4a981
rm trace macros again
2016-01-17 23:22:47 -08:00
Tim Kuehn
166fbf6891
Allow attributes on the generated module.
...
If no doc attribute is present, sets a default doc comment for the module.
2016-01-17 23:21:27 -08:00
Adam Wright
5039a28032
Merge branch 'remove-error-sender' into 'master'
...
Get rid of Error::{Sender, Receiver, Serializer, Deserializer}
See merge request !3
2016-01-18 11:43:21 +05:30
Tim Kuehn
8125f7dead
Merge master
2016-01-17 22:12:49 -08:00
Tim Kuehn
541dd8f9e6
Use pattern matching better
2016-01-17 22:08:04 -08:00
Tim Kuehn
4a35a86cbc
Rename client_stubs => client_methods. Modify unit test to check for the Error variant returned on shutdown.
2016-01-17 21:56:30 -08:00
Tim
8521b61af8
Merge branch 'hide-docs' into 'master'
...
Hide helper macros from tarpc documentation
See merge request !4
2016-01-18 11:13:46 +05:30
Adam Wright
a7a3f47c1a
Hide helper macros from tarpc documentation
2016-01-17 20:52:26 -08:00
Tim Kuehn
f92277e019
Clarify error message
2016-01-17 19:47:48 -08:00
Tim Kuehn
a5a9ec3d4f
Make separate section in the readme for additional features
2016-01-17 19:45:13 -08:00
Tim Kuehn
26ddd3e610
Put deny(missing_docs) at the top. I think it looks better there.
2016-01-17 16:38:11 -08:00
Tim Kuehn
b93752aeaa
Remove unused feature enables
2016-01-17 13:14:53 -08:00
Tim Kuehn
80fb9922cd
Put doc attributes defined on rpc methods on both the Service trait fns as well as the Client method stubs.
2016-01-16 16:19:11 -08:00
Tim Kuehn
e54a9df152
Add checkboxes to planned improvements
2016-01-16 01:22:22 -08:00
Tim Kuehn
15f2547ec7
Update code in readme. Haven't checked if it runs
2016-01-16 01:20:03 -08:00
Tim Kuehn
667eef4066
Clarify timeout arg
2016-01-16 01:14:46 -08:00
Tim Kuehn
d4a760e7c8
Get rid of Error::{Sender, Receiver, Serializer, Deserializer}
2016-01-15 21:52:25 -08:00
Adam Wright
6823bab23e
Merge branch 'remove-error-sender' into 'master'
...
Remove Error::Sender
It was dead code
See merge request !2
2016-01-15 14:44:39 +05:30
Tim Kuehn
e74058dbde
Merge branch 'orderly-shutdown'
2016-01-15 01:10:28 -08:00
Tim Kuehn
dccaa88c80
Remove unused Error::Sender
2016-01-15 01:10:18 -08:00
Adam Wright
1402a6fff1
Merge branch 'orderly-shutdown' into 'master'
...
Orderly shutdown of serving threads when calling ServeHandle::shutdown.
Use condition variable server-side. Change client-side reader thread to empty the sender hashmap before returning.
See merge request !1
2016-01-15 14:08:11 +05:30
Tim Kuehn
001b1b1e43
Only join reader thread if tcp stream shutdown succeeded.
2016-01-15 00:34:36 -08:00
Tim Kuehn
ebd825e679
Bundle of small changes.
...
1. Rename OpenConnections => InflightRpcs, as it represents all current rpc calls being processed.
2. Change Packet from a tuple struct to a regular struct, to clarify its fields.
3. Lower log statements from WARN to INFO where appropriate.
4. Remove shutdown method on ConnectionHandler to disambiguate with the shutdown field.
5. Add a test of client behavior when calling rpc on a client whose stream closed.
2016-01-15 00:28:45 -08:00