Struct actix_web::client::Connect
[−]
[src]
pub struct Connect {
pub uri: Uri,
pub conn_timeout: Duration,
}Connect type represents message that can be send to ClientConnector
with connection request.
Fields
uri: Uri
conn_timeout: Duration
Methods
impl Connect[src]
pub fn new<U>(uri: U) -> Result<Connect, HttpError> where
Uri: HttpTryFrom<U>, [src]
Uri: HttpTryFrom<U>,
Create Connect message for specified Uri
Trait Implementations
impl Debug for Connect[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Message for Connect[src]
type Result = Result<Connection, ClientConnectorError>
The type of value that this message will resolved with if it is successful.
impl Handler<Connect> for ClientConnector[src]
type Result = ActorResponse<ClientConnector, Connection, ClientConnectorError>
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