Struct diffusion::FileWriter [−][src]
pub struct FileWriter<T> where
T: Write, { /* fields omitted */ }
is a writer for file. It can only start to write a new file but not append to an existing file.
Methods
impl<T> FileWriter<T> where
T: Write,
[src]
impl<T> FileWriter<T> where
T: Write,
pub fn new(file: T) -> Result<FileWriter<T>>
[src]
pub fn new(file: T) -> Result<FileWriter<T>>
returns a new file writer instance. It returns error if there is IO error during the process.
pub fn write_multiple(&mut self, bufs: &[&[u8]]) -> Result<()>
[src]
pub fn write_multiple(&mut self, bufs: &[&[u8]]) -> Result<()>
writes multiple buffers as one message
returns Ok(())
if write is successful.
Trait Implementations
impl<T: Debug> Debug for FileWriter<T> where
T: Write,
[src]
impl<T: Debug> Debug for FileWriter<T> where
T: Write,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Writer for FileWriter<T> where
T: Write,
[src]
impl<T> Writer for FileWriter<T> where
T: Write,
Auto Trait Implementations
impl<T> Send for FileWriter<T> where
T: Send,
impl<T> Send for FileWriter<T> where
T: Send,
impl<T> Sync for FileWriter<T> where
T: Sync,
impl<T> Sync for FileWriter<T> where
T: Sync,