Home
last modified time | relevance | path

Searched refs:AsyncBufWriter (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/buffered/
H A Dasync_buf_writer.rs24 /// The `AsyncBufWriter<W>` struct adds buffering to any writer that implements
29 /// When the `AsyncBufWriter<W>` is dropped, the contents inside its buffer will
30 /// be discarded. Creating multiple instances of `AsyncBufWriter<W>` on the same
32 pub struct AsyncBufWriter<W> { structure names
38 impl<W: AsyncWrite> AsyncBufWriter<W> { impls
39 /// Creates a new `AsyncBufWriter<W>` with a default buffer capacity.
49 /// use ylong_runtime::io::AsyncBufWriter;
51 /// let reader = AsyncBufWriter::new(f);
55 pub fn new(inner: W) -> AsyncBufWriter<W> { in new()
56 AsyncBufWriter in new()
[all...]
H A Dmod.rs18 pub use async_buf_writer::AsyncBufWriter;
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dstdio_cargo_test.rs19 use ylong_runtime::io::{AsyncBufWriter, AsyncWriteExt};
66 let mut buf_writer = AsyncBufWriter::new(stdout); in sdv_stdio_buf_writer_write()
75 let mut buf_writer = AsyncBufWriter::new(stderr); in sdv_stdio_buf_writer_write()
H A Dasync_buf_write.rs17 use ylong_runtime::io::{AsyncBufWriter, AsyncReadExt, AsyncWriteExt};
20 /// SDV test cases for AsyncBufWriter `write`
24 /// 2. The client wraps the TcpStream inside a AsyncBufWriter and calls `write`
50 let mut buf_writer = AsyncBufWriter::with_capacity(10, tcp); in sdv_buf_writer_write()
59 /// SDV test cases for AsyncBufWriter `write_vectored`
63 /// 2. The client wraps the TcpStream inside a AsyncBufWriter and calls
92 let mut buf_writer = AsyncBufWriter::with_capacity(3, tcp); in sdv_buf_writer_write_vectored()
101 /// SDV test cases for AsyncBufWriter `seek`
127 let mut buf_writer = AsyncBufWriter::new(file); in sdv_buf_writer_seek()
155 /// SDV test cases for AsyncBufWriter `write_vectore
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dmod.rs36 pub use buffered::{AsyncBufReader, AsyncBufWriter};

Completed in 2 milliseconds