Struct atm_io_utils::Duplex [] [src]

pub struct Duplex<R, W> { /* fields omitted */ }

Implements both AsyncRead and AsyncWrite by delegating to an AsyncRead and an AsyncWrite, taking ownership of both.

Methods

impl<R, W> Duplex<R, W>
[src]

[src]

Takes ownership of a reader and a writer and creates a new Duplex.

[src]

Gets a reference to the underlying reader.

[src]

Gets a mutable reference to the underlying reader.

[src]

Gets a reference to the underlying writer.

[src]

Gets a mutable reference to the underlying writer.

[src]

Unwraps this Duplex, returning the underlying reader and writer.

Trait Implementations

impl<R: Debug, W: Debug> Debug for Duplex<R, W>
[src]

[src]

Formats the value using the given formatter. Read more

impl<R: Copy, W: Copy> Copy for Duplex<R, W>
[src]

impl<R: Clone, W: Clone> Clone for Duplex<R, W>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<R: PartialEq, W: PartialEq> PartialEq for Duplex<R, W>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<R: Eq, W: Eq> Eq for Duplex<R, W>
[src]

impl<R: AsyncRead, W> AsyncRead for Duplex<R, W>
[src]

[src]

Attempt to read from the AsyncRead into buf. Read more

[src]

Determines if this AsyncReader can work with buffers of uninitialized memory. Read more

[src]

Attempt to read from the AsyncRead into vec using vectored IO operations. Read more

impl<R, W: AsyncWrite> AsyncWrite for Duplex<R, W>
[src]

[src]

Attempt to write bytes from buf into the object. Read more

[src]

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more

[src]

Attempt to close the object. Read more

[src]

Attempt to write bytes from vec into the object using vectored IO operations. Read more

Auto Trait Implementations

impl<R, W> Send for Duplex<R, W> where
    R: Send,
    W: Send

impl<R, W> Sync for Duplex<R, W> where
    R: Sync,
    W: Sync