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
type Item
The return type of Endpoint
type Error
The error type of Endpoint
type Future: Future<Item = Self::Item, Error = Self::Error>
The future type of Endpoint
type Endpoint: Endpoint<Item = Self::Item, Error = Self::Error, Future = Self::Future>
The type of Endpoint
returned from new_endpoint()
Required Methods
fn new_endpoint(&self, handle: &Handle) -> Self::Endpoint
Create a new instance of Endpoint
with given event loop