Module client

Module client 

Source
Available on crate feature client only.
Expand description

Generic error types for client

Structs§

BadHostName
Builder error “bad host name”
BadScheme
Builder error “bad scheme”
ClientError
Generic client error
NoAddress
Builder error “missing target address”
NoAvailableEndpoint
LoadBalance error “no available endpoint”
PortUnavailable
Builder error “port is unavailable in current target”
Retry
Connect error “retry”
SchemeUnavailable
Builder error “scheme is unavailable in current target”
Timeout
Request error “request timeout”

Enums§

ErrorKind
Error kind of ClientError

Functions§

body_error
Create a ClientError with ErrorKind::Body
builder_error
Create a ClientError with ErrorKind::Builder
connect_error
Create a ClientError with ErrorKind::Context
context_error
Create a ClientError with ErrorKind::Context
lb_error
Create a ClientError with ErrorKind::LoadBalance
other_error
Create a ClientError with ErrorKind::Other
request_error
Create a ClientError with ErrorKind::Request

Type Aliases§

Result
Result with ClientError as its error by default.