pub enum FileHandle {
Stdin,
Stdout,
Stderr,
File(File),
Closed,
}Expand description
The OS resource behind a file userdata. Standard streams cannot be closed;
an opened file carries its handle and becomes Closed after :close().
Variants§
Stdin
Standard input (cannot be closed).
Stdout
Standard output (cannot be closed).
Stderr
Standard error (cannot be closed).
File(File)
An opened OS file.
Closed
A closed file (post-:close()); further operations error.
Implementations§
Auto Trait Implementations§
impl Freeze for FileHandle
impl RefUnwindSafe for FileHandle
impl Send for FileHandle
impl Sync for FileHandle
impl Unpin for FileHandle
impl UnsafeUnpin for FileHandle
impl UnwindSafe for FileHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more