Struct actix::actors::Connect
[−]
[src]
pub struct Connect { /* fields omitted */ }
Methods
impl Connect
[src]
pub fn host<T: AsRef<str>>(host: T) -> Connect
[src]
pub fn host_and_port<T: AsRef<str>>(host: T, port: u16) -> Connect
[src]
pub fn timeout(self, timeout: Duration) -> Connect
[src]
Set connect timeout
By default timeout is set to a 1 second.
Trait Implementations
impl Message for Connect
[src]
type Result = Result<TcpStream, ConnectorError>
The type of value that this message will resolved with if it is successful.
impl Handler<Connect> for Connector
[src]
type Result = ResponseActFuture<Self, TcpStream, ConnectorError>
The type of value that this handle will return
fn handle(&mut self, msg: Connect, _: &mut Self::Context) -> Self::Result
[src]
Method is called for every message received by this Actor