[][src]Struct tinkv::util::FileWithBufWriter

pub struct FileWithBufWriter { /* fields omitted */ }

A file wrapper wraps File and BufWriterWithOffset<File>. We're using BufWriterWithOffset here for better writting performance. Also, we need to make sure file.sync_all() can be called manually to flush all pending writes to disk.

Implementations

impl FileWithBufWriter[src]

pub fn from(inner: File) -> Result<FileWithBufWriter>[src]

pub fn inner(&self) -> &File[src]

pub fn inner_mut(&mut self) -> &mut File[src]

pub fn sync(&mut self) -> Result<()>[src]

pub fn offset(&self) -> u64[src]

Trait Implementations

impl Debug for FileWithBufWriter[src]

impl Drop for FileWithBufWriter[src]

impl Seek for FileWithBufWriter[src]

impl Write for FileWithBufWriter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized