#[repr(C)]pub struct Handle(/* private fields */);
Expand description
Represents an open file
Implementations§
Source§impl Handle
impl Handle
Sourcepub const fn new(value: u8) -> Handle
pub const fn new(value: u8) -> Handle
Construct a new Handle
from an integer.
Only the OS should call this - applications should not be constructing
their own file handles! But if you do, you probably can’t harm anything
and it’s no worse that C just using int
.
Sourcepub const fn new_stdout() -> Handle
pub const fn new_stdout() -> Handle
Create a file handle for Standard Output
Sourcepub const fn new_stderr() -> Handle
pub const fn new_stderr() -> Handle
Create a file handle for Standard Error
Trait Implementations§
impl Copy for Handle
impl Eq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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