[−][src]Struct actix_server::Io
Methods
impl<T> Io<T, ()>
[src]
impl<T, P> Io<T, P>
[src]
pub fn from_parts(io: T, params: P, proto: Protocol) -> Io<T, P>
[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]
F: FnOnce(P) -> U,
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> Debug for Io<T, P> where
T: Debug,
[src]
T: Debug,
impl<T, P> Deref for Io<T, P>
[src]
Auto Trait Implementations
impl<T, P> Send for Io<T, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, P> Sync for Io<T, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,