[][src]Struct scrappy_connect::TcpConnector

pub struct TcpConnector<T>(_);

Tcp connector service

Methods

impl<T> TcpConnector<T>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<T> Clone for TcpConnector<T>[src]

impl<T: Debug> Debug for TcpConnector<T>[src]

impl<T: Default> Default for TcpConnector<T>[src]

impl<T: Address> Service for TcpConnector<T>[src]

type Request = Connect<T>

Requests handled by the service.

type Response = Connection<T, TcpStream>

Responses given by the service.

type Error = ConnectError

Errors produced by the service.

type Future = Either<TcpConnectorResponse<T>, Ready<Result<Self::Response, Self::Error>>>

The future response value.

Auto Trait Implementations

impl<T> RefUnwindSafe for TcpConnector<T> where
    T: RefUnwindSafe

impl<T> Send for TcpConnector<T> where
    T: Send

impl<T> Sync for TcpConnector<T> where
    T: Sync

impl<T> Unpin for TcpConnector<T> where
    T: Unpin

impl<T> UnwindSafe for TcpConnector<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> IntoService<T> for T where
    T: Service
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,