mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Return a concrete type from server::listen (#113)
* Return a concrete type from `server::listen`. * Change `FutureServiceExt::listen` to return `(SocketAddr, Listen)`, where `Listen` is a struct created by the `service!` macro that `impls Future<Item=(), Error=()>` and represents server execution. * Disable `conservative_impl_trait` as it's no longer used. * Update `FutureServiceExt` doc comment. * Update `SyncServiceExt` doc comment. Also annotate `server::Handle` with `#[must_use]`. * `cargo fmt`
This commit is contained in:
@@ -27,8 +27,7 @@
|
||||
//! Example usage:
|
||||
//!
|
||||
//! ```
|
||||
//! // required by `FutureClient` (not used in this example)
|
||||
//! #![feature(conservative_impl_trait, plugin)]
|
||||
//! #![feature(plugin)]
|
||||
//! #![plugin(tarpc_plugins)]
|
||||
//!
|
||||
//! #[macro_use]
|
||||
@@ -72,8 +71,7 @@
|
||||
//! Example usage with TLS:
|
||||
//!
|
||||
//! ```ignore
|
||||
//! // required by `FutureClient` (not used in this example)
|
||||
//! #![feature(conservative_impl_trait, plugin)]
|
||||
//! #![feature(plugin)]
|
||||
//! #![plugin(tarpc_plugins)]
|
||||
//!
|
||||
//! #[macro_use]
|
||||
@@ -116,7 +114,7 @@
|
||||
//! ```
|
||||
//!
|
||||
#![deny(missing_docs)]
|
||||
#![feature(conservative_impl_trait, never_type, plugin, struct_field_attributes)]
|
||||
#![feature(never_type, plugin, struct_field_attributes, fn_traits, unboxed_closures)]
|
||||
#![plugin(tarpc_plugins)]
|
||||
|
||||
extern crate byteorder;
|
||||
|
||||
Reference in New Issue
Block a user