VowFile

Trait VowFile 

Source
pub trait VowFile: Read + Write {
    // Required methods
    fn open(path: impl AsRef<Path>) -> Result<Self>
       where Self: Sized;
    fn set_len(&mut self, len: u64) -> Result<()>;
}
Expand description

Low-level trait for synchronous file operations

Required Methods§

Source

fn open(path: impl AsRef<Path>) -> Result<Self>
where Self: Sized,

Open a new file at the given path

Source

fn set_len(&mut self, len: u64) -> Result<()>

Set the length of the file

Implementations on Foreign Types§

Source§

impl VowFile for File

Source§

fn open(path: impl AsRef<Path>) -> Result<Self>

Source§

fn set_len(&mut self, len: u64) -> Result<()>

Implementors§