pub struct HSTD(/* private fields */);
Available on crate feature
kernel
only.Expand description
Handle to a
standard device.
Originally just a HANDLE
.
Trait Implementations§
source§impl Handle for HSTD
impl Handle for HSTD
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Returns a mutable reference to the underlying raw pointer. Read more
source§impl PartialEq for HSTD
impl PartialEq for HSTD
source§impl kernel_Hstd for HSTD
impl kernel_Hstd for HSTD
source§fn FlushConsoleInputBuffer(&self) -> SysResult<()>
fn FlushConsoleInputBuffer(&self) -> SysResult<()>
FlushConsoleInputBuffer
function.source§fn GetConsoleMode(&self) -> SysResult<CONSOLE>
fn GetConsoleMode(&self) -> SysResult<CONSOLE>
GetConsoleMode
function.source§fn GetStdHandle(std_handle: STD_HANDLE) -> SysResult<CloseHandleGuard<HSTD>>
fn GetStdHandle(std_handle: STD_HANDLE) -> SysResult<CloseHandleGuard<HSTD>>
GetStdHandle
function.source§fn ReadConsole(
&self,
buffer: &mut WString,
input_control: Option<&CONSOLE_READCONSOLE_CONTROL>
) -> SysResult<u32>
fn ReadConsole( &self, buffer: &mut WString, input_control: Option<&CONSOLE_READCONSOLE_CONTROL> ) -> SysResult<u32>
ReadConsole
function. Read moresource§fn SetConsoleMode(&self, mode: CONSOLE) -> SysResult<()>
fn SetConsoleMode(&self, mode: CONSOLE) -> SysResult<()>
SetConsoleMode
function.source§fn WriteConsole(&self, text: &str) -> SysResult<u32>
fn WriteConsole(&self, text: &str) -> SysResult<u32>
WriteConsole
function. Read moreimpl Eq for HSTD
impl Send for HSTD
impl StructuralPartialEq for HSTD
Auto Trait Implementations§
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