Struct atm_io_utils::partial::PartialRead
[−]
[src]
pub struct PartialRead<R, Ops> { /* fields omitted */ }
Wraps a reader and modifies its read operations according to the given iterator of PartialOp
s.
Methods
impl<R, Ops> PartialRead<R, Ops>
[src]
pub fn new(reader: R, ops: Ops) -> PartialRead<R, Ops>
[src]
Create a new PartialRead
, wrapping the given R
and modifying its io operations via the
given Ops
.
pub fn get_ref(&self) -> &R
[src]
Gets a reference to the underlying R
.
pub fn get_mut(&mut self) -> &mut R
[src]
Gets a mutable reference to the underlying R
.
pub fn into_inner(self) -> R
[src]
Consumes this PartialRead
, returning the underlying reader.
Trait Implementations
impl<R: Debug, Ops: Debug> Debug for PartialRead<R, Ops>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<R, Ops> AsyncRead for PartialRead<R, Ops> where
R: AsyncRead,
Ops: Iterator<Item = PartialOp>,
[src]
R: AsyncRead,
Ops: Iterator<Item = PartialOp>,
fn poll_read(&mut self, cx: &mut Context, buf: &mut [u8]) -> Poll<usize, Error>
[src]
Attempt to read from the AsyncRead
into buf
. Read more
unsafe fn initializer(&self) -> Initializer
[src]
Determines if this AsyncRead
er can work with buffers of uninitialized memory. Read more
fn poll_vectored_read(
&mut self,
cx: &mut Context,
vec: &mut [&mut IoVec]
) -> Result<Async<usize>, Error>
[src]
&mut self,
cx: &mut Context,
vec: &mut [&mut IoVec]
) -> Result<Async<usize>, Error>
Attempt to read from the AsyncRead
into vec
using vectored IO operations. Read more
impl<W, Ops> AsyncWrite for PartialRead<W, Ops> where
W: AsyncWrite,
[src]
W: AsyncWrite,
fn poll_write(&mut self, cx: &mut Context, buf: &[u8]) -> Poll<usize, Error>
[src]
Attempt to write bytes from buf
into the object. Read more
fn poll_flush(&mut self, cx: &mut Context) -> Poll<(), Error>
[src]
Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
fn poll_close(&mut self, cx: &mut Context) -> Poll<(), Error>
[src]
Attempt to close the object. Read more
fn poll_vectored_write(
&mut self,
cx: &mut Context,
vec: &[&IoVec]
) -> Poll<usize, Error>
[src]
&mut self,
cx: &mut Context,
vec: &[&IoVec]
) -> Poll<usize, Error>
Attempt to write bytes from vec
into the object using vectored IO operations. Read more
Auto Trait Implementations
impl<R, Ops> Send for PartialRead<R, Ops> where
Ops: Send,
R: Send,
Ops: Send,
R: Send,
impl<R, Ops> Sync for PartialRead<R, Ops> where
Ops: Sync,
R: Sync,
Ops: Sync,
R: Sync,