[][src]Struct actix_server_config::Io

pub struct Io<T, P = ()> { /* fields omitted */ }

Methods

impl<T> Io<T, ()>[src]

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

impl<T, P> Io<T, P>[src]

pub fn from_parts(io: T, params: P, proto: Protocol) -> Self[src]

Reconstruct from a parts.

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

Deconstruct into a parts.

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

Returns a shared reference to the underlying stream.

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

Returns a mutable reference to the underlying stream.

pub fn protocol(&self) -> Protocol[src]

Get selected protocol

pub fn set<U>(self, params: U) -> Io<T, U>[src]

Return new Io object with new parameter.

pub fn map<U, F>(self, op: F) -> Io<T, U> where
    F: FnOnce(P) -> U, 
[src]

Maps an Io<, P> to Io<, U> by applying a function to a contained value.

Trait Implementations

impl<T, P> DerefMut for Io<T, P>[src]

impl<T, P> Deref for Io<T, P>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Debug, P> Debug for Io<T, P>[src]

Auto Trait Implementations

impl<T, P> Unpin for Io<T, P> where
    P: Unpin,
    T: Unpin

impl<T, P> Sync for Io<T, P> where
    P: Sync,
    T: Sync

impl<T, P> Send for Io<T, P> where
    P: Send,
    T: Send

impl<T, P> RefUnwindSafe for Io<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, P> UnwindSafe for Io<T, P> where
    P: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T