Trait finchers::endpoint::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
Implementors
impl<F, E> NewEndpoint for F where
F: Fn(&Handle) -> E,
E: Endpoint, type Item = E::Item; type Error = E::Error; type Future = E::Future; type Endpoint = E;impl<E: NewEndpoint> NewEndpoint for Rc<E> type Item = E::Item; type Error = E::Error; type Future = E::Future; type Endpoint = E::Endpoint;
impl<E: NewEndpoint> NewEndpoint for Arc<E> type Item = E::Item; type Error = E::Error; type Future = E::Future; type Endpoint = E::Endpoint;