Struct actix_connect::ConnectServiceFactory [−][src]
pub struct ConnectServiceFactory<T> { /* fields omitted */ }
Implementations
Construct new connect service with custom dns resolver
Construct new service
Construct new tcp stream service
Trait Implementations
type Response = Connection<T, TcpStream>
type Response = Connection<T, TcpStream>
Responses given by the created services.
type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
type Service = ConnectService<T>
type Service = ConnectService<T>
The kind of Service
created by this factory.
Create and return a new service asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<T> !RefUnwindSafe for ConnectServiceFactory<T>
impl<T> Send for ConnectServiceFactory<T> where
T: Send,
impl<T> Sync for ConnectServiceFactory<T> where
T: Sync,
impl<T> Unpin for ConnectServiceFactory<T> where
T: Unpin,
impl<T> !UnwindSafe for ConnectServiceFactory<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory