Struct actix_web::actix::resolver::Connect [−][src]
pub struct Connect { /* fields omitted */ }Methods
impl Connect[src]
impl Connectpub fn host<T>(host: T) -> Connect where
T: AsRef<str>, [src]
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>, [src]
pub fn host_and_port<T>(host: T, port: u16) -> Connect where
T: AsRef<str>, pub fn timeout(self, timeout: Duration) -> Connect[src]
pub fn timeout(self, timeout: Duration) -> ConnectSet connect timeout
By default timeout is set to a 1 second.
Trait Implementations
impl Message for Connect[src]
impl Message for Connecttype 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[src]
impl Handler<Connect> for Resolvertype 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[src]
fn handle(
&mut self,
msg: Connect,
&mut <Resolver as Actor>::Context
) -> <Resolver as Handler<Connect>>::ResultMethod is called for every message received by this Actor
impl PartialEq<Connect> for Connect[src]
impl PartialEq<Connect> for Connectfn eq(&self, other: &Connect) -> bool[src]
fn eq(&self, other: &Connect) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Connect) -> bool[src]
fn ne(&self, other: &Connect) -> boolThis method tests for !=.
impl Debug for Connect[src]
impl Debug for Connectfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for Connect[src]
impl Eq for Connect