You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andrewgross opened this issue
Aug 21, 2015
· 1 comment
Labels
A-docsArea: documentation.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
Having some issues getting access to the SSL Stream for an HTTPS request. I am using the example code, though it still seems to be unhappy.
On Rust 1.2, hyper = "0.6.9"
fndoc_ssl(req: hyper::server::Request){let maybe_ssl = req.ssl::<SslStream>();}
src/main.rs:105:31:105:40 error: wrong number of type arguments:expected1, found 0[E0243]
src/main.rs:105let maybe_ssl = req.ssl::<SslStream>();
^~~~~~~~~
It seems no matter how many type annotations I give, and how I try to match that it refuses to accept it. Due to recent addition of this feature, I am not sure if is a bug, or if I am just unable to implement it correctly. Apologies if this is a trivial issue, I am still quite new to rust.
The text was updated successfully, but these errors were encountered:
The SslStream from openssl has a type parameter. Try SslStream.
On Fri, Aug 21, 2015, 11:12 AM Andrew Gross [email protected]
wrote:
Having some issues getting access to the SSL Stream for an HTTPS request.
I am using the example code, though it still seems to be unhappy.
On Rust 1.2, hyper = "0.6.9"
fn doc_ssl(req: hyper::server::Request) {
let maybe_ssl = req.ssl::();
}
src/main.rs:105:31: 105:40 error: wrong number of type arguments: expected 1, found 0 [E0243]
src/main.rs:105 let maybe_ssl = req.ssl::();
^~~~~~~~~
It seems no matter how many type annotations I give, and how I try to
match that it refuses to accept it. Due to recent addition of this
feature, I am not sure if is a bug, or if I am just unable to implement it
correctly. Apologies if this is a trivial issue, I am still quite new to
rust.
—
Reply to this email directly or view it on GitHub #633.
seanmonstar
added
C-bug
Category: bug. Something is wrong. This is bad!
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
A-docs
Area: documentation.
labels
Aug 24, 2015
A-docsArea: documentation.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
Having some issues getting access to the SSL Stream for an HTTPS request. I am using the example code, though it still seems to be unhappy.
On Rust 1.2,
hyper = "0.6.9"
It seems no matter how many type annotations I give, and how I try to
match
that it refuses to accept it. Due to recent addition of this feature, I am not sure if is a bug, or if I am just unable to implement it correctly. Apologies if this is a trivial issue, I am still quite new to rust.The text was updated successfully, but these errors were encountered: