Lines Matching defs:File
61 pub struct File { struct
62 inner: sys::File, argument
65 impl File { implementation
69 pub fn open<P: AsRef<Path>>(p: P) -> anyhow::Result<File> { in open()
77 pub fn create<P: AsRef<Path>>(p: P) -> anyhow::Result<File> { in create()
85 pub fn from_std(f: StdFile) -> anyhow::Result<File> { in from_std()
93 pub fn into_std(self) -> Result<StdFile, File> { in into_std() argument
331 pub fn try_clone(&self) -> anyhow::Result<File> { in try_clone()
336 impl TryFrom<StdFile> for File { implementation
346 fn try_from(f: File) -> Result<StdFile, File> { in try_from() argument
351 impl AsRawDescriptor for File { implementation