Lines Matching defs:File
13 pub struct File { struct
14 file: fs::File, argument
18 // Opens a std File and returns it or an error generator which only needs the path to produce the e… argument
20 pub(crate) fn open(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in open()
25 pub(crate) fn create(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in create()
32 impl File { impl
153 impl File { impl
155 pub fn from_parts<P>(file: fs::File, path: P) -> Self in from_parts()
166 pub fn into_parts(self) -> (fs::File, PathBuf) { in into_parts()
173 pub fn file(&self) -> &fs::File { in file()
180 pub fn file_mut(&mut self) -> &mut fs::File { in file_mut()
195 impl Read for File { implementation
209 impl Read for &File { implementation
223 impl From<File> for fs::File { implementation
229 impl Seek for File { implementation
237 impl Seek for &File { implementation
245 impl Write for File { implementation
265 impl Write for &File { implementation
293 impl AsRawFd for crate::File { implementation
299 impl IntoRawFd for crate::File { implementation
305 impl FileExt for crate::File { implementation
322 impl AsFd for crate::File { implementation
346 impl FileExt for crate::File { implementation
360 impl AsRawHandle for crate::File { implementation
370 impl IntoRawHandle for crate::File { implementation
380 impl AsHandle for crate::File { implementation