Module copra::channel [] [src]

Communication channel between servers

This module contains the Channel struct and some types interact with it.

Examples

use copra::ChannelBuilder;
use tokio_core::reactor::Core;

let core = Core::new()?;
let builder = ChannelBuilder::single_server("127.0.0.1:8000", core.handle());
let channel = core.run(builder.build())?;

Structs

Channel

Communication channel between servers

ChannelBuilder

Channel factory, which can be used to setup a new channel

ChannelFuture

A future used internally by the framework. It will resolve to a serialized response.

FeedbackHandle

[WIP] Feedback handle to load balancers

Enums

ChannelBuildError

The error when building a channel

ChannelError

[WIP] The error occured when sending or receiving packages

Type Definitions

ChannelBuildFuture

A future returned by ChannelBuilder::build which will resolve to a Channel when the channel is ready for use.