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>
[src]
impl<'a> Deref for FileLock<'a>
[src]
type Target = CFile
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value