Lines Matching defs:File
12 pub struct File { struct
13 file: fs::File, argument
17 // Opens a std File and returns it or an error generator which only needs the path to produce the e… argument
19 pub(crate) fn open(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in open()
24 pub(crate) fn create(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in create()
31 impl File { impl
141 impl File { implementation
143 pub fn from_parts<P>(file: fs::File, path: P) -> Self in from_parts()
154 pub fn into_parts(self) -> (fs::File, PathBuf) { in into_parts()
161 pub fn file(&self) -> &fs::File { in file()
168 pub fn file_mut(&mut self) -> &mut fs::File { in file_mut()
183 impl Read for File { implementation
197 impl<'a> Read for &'a File { implementation
211 impl From<File> for fs::File { implementation
217 impl Seek for File { implementation
225 impl<'a> Seek for &'a File { implementation
233 impl Write for File { implementation
253 impl<'a> Write for &'a File { implementation
281 impl AsRawFd for crate::File { implementation
287 impl IntoRawFd for crate::File { implementation
293 impl FileExt for crate::File { implementation
311 impl AsFd for crate::File { implementation
336 impl FileExt for crate::File { implementation
350 impl AsRawHandle for crate::File { implementation
360 impl IntoRawHandle for crate::File { implementation
371 impl AsHandle for crate::File { implementation