pub fn open_stream_expecting(
endpoint: &str,
expect: &HostExpectation,
) -> Result<Stream, ConnectError>Expand description
open_stream that first verifies the host is the program expect names, before a byte is
written (see Client::connect_expecting for the checks and
what each platform verifies). A host that is not the expected one is
ConnectError::HostIdentity; a host that cannot be
reached is ConnectError::Service with the retryable
service_unavailable.