Struct actix::actors::resolver::Connect [−][src]
pub struct Connect { /* fields omitted */ }Methods
impl Connect[src]
impl Connectpub fn host<T: AsRef<str>>(host: T) -> Connect[src]
pub fn host<T: AsRef<str>>(host: T) -> Connectpub fn host_and_port<T: AsRef<str>>(host: T, port: u16) -> Connect[src]
pub fn host_and_port<T: AsRef<str>>(host: T, port: u16) -> Connectpub 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 Eq for Connect[src]
impl Eq for Connectimpl PartialEq for Connect[src]
impl PartialEq 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[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
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 = ResponseActFuture<Self, TcpStream, ResolverError>
The type of value that this handle will return
fn handle(&mut self, msg: Connect, _: &mut Self::Context) -> Self::Result[src]
fn handle(&mut self, msg: Connect, _: &mut Self::Context) -> Self::ResultMethod is called for every message received by this Actor