Struct actix_web::ws::ClientHandshake [−][src]
Future that implementes client websocket handshake process.
It resolves to a pair of ClientReader
and ClientWriter
that
can be used for reading and writing websocket frames.
Methods
impl ClientHandshake
[src]
[−]
impl ClientHandshake
pub fn timeout(self, timeout: Duration) -> Self
[src]
[−]
pub fn timeout(self, timeout: Duration) -> Self
Set handshake timeout
Handshake timeout is a total time before handshake should be completed. Default value is 5 seconds.
pub fn conn_timeout(self, timeout: Duration) -> Self
[src]
[−]
pub fn conn_timeout(self, timeout: Duration) -> Self
Set connection timeout
Connection timeout includes resolving hostname and actual connection to the host. Default value is 1 second.
Trait Implementations
impl Future for ClientHandshake
[src]
[+]
impl Future for ClientHandshake
Auto Trait Implementations
impl !Send for ClientHandshake
impl !Send for ClientHandshake
impl !Sync for ClientHandshake
impl !Sync for ClientHandshake