[−][src]Struct solicit::http::client::CleartextConnector
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
host: &'a str
The host to which the connection should be established
port: u16
The port on which the connection should be established
Methods
impl<'a> CleartextConnector<'a>[src]
impl<'a> CleartextConnector<'a>pub fn new(host: &'a str) -> CleartextConnector[src]
pub fn new(host: &'a str) -> CleartextConnectorCreates a new CleartextConnector that will attempt to establish a connection to the given
host on port 80.
pub fn with_port(host: &'a str, port: u16) -> CleartextConnector[src]
pub fn with_port(host: &'a str, port: u16) -> CleartextConnectorCreates 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]
impl<'a> HttpConnect for CleartextConnector<'a>type Stream = TcpStream
The type of the underlying transport stream that the HttpConnections produced by this HttpConnect implementation will be based on. Read more
type Err = CleartextConnectError
The type of the error that can be produced by trying to establish the connection (i.e. calling the connect method). Read more
fn connect(self) -> Result<ClientStream<TcpStream>, CleartextConnectError>[src]
fn connect(self) -> Result<ClientStream<TcpStream>, CleartextConnectError>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> Send for CleartextConnector<'a>impl<'a> Sync for CleartextConnector<'a>
impl<'a> Sync for CleartextConnector<'a>Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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