[][src]Struct io_arc::IoArc

pub struct IoArc<T>(_);

A variant of Arc that delegates IO traits if available on &T.

Methods

impl<T> IoArc<T>[src]

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

Create a new instance of IoArc.

Trait Implementations

impl<T> AsRef<T> for IoArc<T>[src]

impl<T> AsyncRead for IoArc<T> where
    &'a T: AsyncRead
[src]

impl<T> AsyncWrite for IoArc<T> where
    &'a T: AsyncWrite
[src]

impl<T> Borrow<T> for IoArc<T>[src]

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

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

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

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

impl<T> Read for IoArc<T> where
    &'a T: Read
[src]

impl<T> Unpin for IoArc<T>[src]

impl<T> Write for IoArc<T> where
    &'a T: Write
[src]

Auto Trait Implementations

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

impl<T> Send for IoArc<T> where
    T: Send + Sync

impl<T> Sync for IoArc<T> where
    T: Send + Sync

impl<T> UnwindSafe for IoArc<T> where
    T: RefUnwindSafe

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<!> for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.