Trait finchers::NewEndpoint [] [src]

pub trait NewEndpoint {
    type Item;
    type Error;
    type Future: Future<Item = Self::Item, Error = Self::Error>;
    type Endpoint: Endpoint<Item = Self::Item, Error = Self::Error, Future = Self::Future>;
    fn new_endpoint(&self, handle: &Handle) -> Self::Endpoint;
}

A factory of Endpoint

Associated Types

The return type of Endpoint

The error type of Endpoint

The future type of Endpoint

The type of Endpoint returned from new_endpoint()

Required Methods

Create a new instance of Endpoint with given event loop

Implementations on Foreign Types

impl<E: NewEndpoint> NewEndpoint for Rc<E>
[src]

[src]

impl<E: NewEndpoint> NewEndpoint for Arc<E>
[src]

[src]

Implementors