Struct actix_web::actix::resolver::Connect [−]
pub struct Connect { /* fields omitted */ }
Methods
impl Connect
impl Connect
pub fn host<T>(host: T) -> Connect where
T: AsRef<str>,
pub fn host<T>(host: T) -> Connect where
T: AsRef<str>,
pub fn host_and_port<T>(host: T, port: u16) -> Connect where
T: AsRef<str>,
pub fn host_and_port<T>(host: T, port: u16) -> Connect where
T: AsRef<str>,
pub fn timeout(self, timeout: Duration) -> Connect
pub fn timeout(self, timeout: Duration) -> Connect
Set connect timeout
By default timeout is set to a 1 second.
Trait Implementations
impl Eq for Connect
impl Eq for Connect
impl Message for Connect
impl Message for Connect
type Result = Result<TcpStream, ResolverError>
The type of value that this message will resolved with if it is successful. Read more
impl PartialEq<Connect> for Connect
impl PartialEq<Connect> for Connect
fn eq(&self, other: &Connect) -> bool
fn eq(&self, other: &Connect) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Connect) -> bool
fn ne(&self, other: &Connect) -> bool
This method tests for !=
.
impl Handler<Connect> for Resolver
impl Handler<Connect> for Resolver
type Result = Box<ActorFuture<Error = ResolverError, Item = TcpStream, Actor = Resolver> + 'static>
The type of value that this handle will return
fn handle(
&mut self,
msg: Connect,
&mut <Resolver as Actor>::Context
) -> <Resolver as Handler<Connect>>::Result
fn handle(
&mut self,
msg: Connect,
&mut <Resolver as Actor>::Context
) -> <Resolver as Handler<Connect>>::Result
Method is called for every message received by this Actor
impl Debug for Connect
impl Debug for Connect