Struct cfile::FileLock [] [src]

pub struct FileLock<'a>(_);

A locked reference to the CFile stream.

Methods from Deref<Target=CFile>

fn reopen(&self, filename: &str, mode: &str) -> Result<CFile>

opens the file whose name is the string pointed to by filename and associates the stream pointed to by stream with it.

The original stream (if it exists) is closed. The mode argument is used just as in the open() function.

Trait Implementations

impl<'a> Drop for FileLock<'a>

fn drop(&mut self)

impl<'a> Deref for FileLock<'a>

type Target = CFile

fn deref(&self) -> &Self::Target

impl<'a> DerefMut for FileLock<'a>

fn deref_mut(&mut self) -> &mut Self::Target