Struct atm_io_utils::partial::PartialWrite
[−]
[src]
pub struct PartialWrite<W, Ops> { /* fields omitted */ }
Wraps a reader and modifies its read operations according to the given iterator of PartialOp
s.
Methods
impl<W, Ops> PartialWrite<W, Ops>
[src]
pub fn new(writer: W, ops: Ops) -> PartialWrite<W, Ops>
[src]
Create a new PartialWrite
, wrapping the given W
and modifying its io operations via the
given Ops
.
pub fn get_ref(&self) -> &W
[src]
Gets a reference to the underlying W
.
pub fn get_mut(&mut self) -> &mut W
[src]
Gets a mutable reference to the underlying W
.
pub fn into_inner(self) -> W
[src]
Consumes this PartialWrite
, returning the underlying writer.
Trait Implementations
impl<W: Debug, Ops: Debug> Debug for PartialWrite<W, Ops>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<W, Ops> AsyncWrite for PartialWrite<W, Ops> where
W: AsyncWrite,
Ops: Iterator<Item = PartialOp>,
[src]
W: AsyncWrite,
Ops: Iterator<Item = PartialOp>,
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]
) -> Result<Async<usize>, Error>
[src]
&mut self,
cx: &mut Context,
vec: &[&IoVec]
) -> Result<Async<usize>, Error>
Attempt to write bytes from vec
into the object using vectored IO operations. Read more
impl<W, Ops> AsyncRead for PartialWrite<W, Ops> where
W: AsyncRead,
[src]
W: AsyncRead,
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
Auto Trait Implementations
impl<W, Ops> Send for PartialWrite<W, Ops> where
Ops: Send,
W: Send,
Ops: Send,
W: Send,
impl<W, Ops> Sync for PartialWrite<W, Ops> where
Ops: Sync,
W: Sync,
Ops: Sync,
W: Sync,