[][src]Struct actix_connect::Connection

pub struct Connection<T, U> { /* fields omitted */ }

Methods

impl<T, U> Connection<T, U>[src]

pub fn new(io: U, req: T) -> Self[src]

impl<T, U> Connection<T, U>[src]

pub fn from_parts(io: U, req: T) -> Self[src]

Reconstruct from a parts.

pub fn into_parts(self) -> (U, T)[src]

Deconstruct into a parts.

pub fn replace<Y>(self, io: Y) -> (U, Connection<T, Y>)[src]

Replace inclosed object, return new Stream and old object

pub fn get_ref(&self) -> &U[src]

Returns a shared reference to the underlying stream.

pub fn get_mut(&mut self) -> &mut U[src]

Returns a mutable reference to the underlying stream.

impl<T: Address, U> Connection<T, U>[src]

pub fn host(&self) -> &str[src]

Get request

Trait Implementations

impl<T, U> DerefMut for Connection<T, U>[src]

impl<T, U> Deref for Connection<T, U>[src]

type Target = U

The resulting type after dereferencing.

impl<T, U: Debug> Debug for Connection<T, U>[src]

Auto Trait Implementations

impl<T, U> Send for Connection<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Connection<T, U> where
    T: Sync,
    U: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> Erased for T