pub struct Connect { /* private fields */ }
Expand description
Connect
type represents a message that can be sent to
ClientConnector
with a connection request.
Implementations
sourceimpl Connect
impl Connect
sourcepub fn new<U>(uri: U) -> Result<Connect, HttpError>where
Uri: HttpTryFrom<U>,
pub fn new<U>(uri: U) -> Result<Connect, HttpError>where
Uri: HttpTryFrom<U>,
Create Connect
message for specified Uri
sourcepub fn conn_timeout(self, timeout: Duration) -> Self
pub fn conn_timeout(self, timeout: Duration) -> Self
Connection timeout, i.e. max time to connect to remote host. Set to 1 second by default.
sourcepub fn wait_timeout(self, timeout: Duration) -> Self
pub fn wait_timeout(self, timeout: Duration) -> Self
If connection pool limits are enabled, wait time indicates max time to wait for a connection to become available. Set to 5 seconds by default.
Trait Implementations
sourceimpl Handler<Connect> for ClientConnector
impl Handler<Connect> for ClientConnector
type Result = ActorResponse<ClientConnector, Connection, ClientConnectorError>
type Result = ActorResponse<ClientConnector, Connection, ClientConnectorError>
The type of value that this handle will return
sourceimpl Message for Connect
impl Message for Connect
type Result = Result<Connection, ClientConnectorError>
type Result = Result<Connection, ClientConnectorError>
The type of value that this message will resolved with if it is
successful. Read more
Auto Trait Implementations
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more