[][src]Struct solicit::http::client::CleartextConnector

pub struct CleartextConnector<'a> {
    pub host: &'a str,
    pub port: u16,
}

A struct that establishes a cleartext TCP connection that can be used by an HTTP/2 connection. Defaults to using port 80.

It assumes that the connection is based on prior knowledge of the server's support for HTTP/2.

More information in the spec

Fields

The host to which the connection should be established

The port on which the connection should be established

Methods

impl<'a> CleartextConnector<'a>
[src]

Creates a new CleartextConnector that will attempt to establish a connection to the given host on port 80.

Creates a new CleartextConnector that will attempt to establish a connection to the given host on the given port.

Trait Implementations

impl<'a> HttpConnect for CleartextConnector<'a>
[src]

The type of the underlying transport stream that the HttpConnections produced by this HttpConnect implementation will be based on. Read more

The type of the error that can be produced by trying to establish the connection (i.e. calling the connect method). Read more

Establishes a cleartext TCP connection based on the host and port. If it is not possible, returns an HttpError.

Auto Trait Implementations

impl<'a> Send for CleartextConnector<'a>

impl<'a> Sync for CleartextConnector<'a>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more