[][src]Trait unsafe_io::AsUnsafeFile

pub trait AsUnsafeFile {
    pub fn as_unsafe_file(&self) -> UnsafeFile;

    pub fn as_file(&self) -> View<'_, File> { ... }
}

A trait for types which contain an unsafe file and can expose it.

Required methods

pub fn as_unsafe_file(&self) -> UnsafeFile[src]

Return the contained unsafe file.

Loading content...

Provided methods

pub fn as_file(&self) -> View<'_, File>[src]

Utility for returning a value which dereferences to a &File or &mut File.

Note that AsUnsafeFile may be implemented for types which are not normal files, and which don't support all the methods on File.

Loading content...

Implementors

impl<T: AsRawFd> AsUnsafeFile for T[src]

Loading content...