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 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 Handler<Connect> for Resolver
impl Handler<Connect> for Resolver
type Result = Box<ActorFuture<Item = TcpStream, Actor = Resolver, Error = ResolverError> + '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
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Eq for Connect
impl Eq for Connect
impl PartialEq<Connect> for Connect
impl PartialEq<Connect> for Connect