Trait winsafe::prelude::kernel_Hevent
source · pub trait kernel_Hevent: Handle {
// Provided methods
fn CreateEvent(
security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>,
manual_reset: bool,
initial_state: bool,
name: Option<&str>
) -> SysResult<CloseHandleGuard<HEVENT>> { ... }
fn CreateEventEx(
security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>,
name: Option<&str>,
flags: CREATE_EVENT,
desired_access: EVENT_RIGHTS
) -> SysResult<CloseHandleGuard<HEVENT>> { ... }
fn OpenEvent(
&self,
desired_access: EVENT_RIGHTS,
inherit_handle: bool,
name: &str
) -> SysResult<CloseHandleGuard<HEVENT>> { ... }
fn PulseEvent(&self) -> SysResult<()> { ... }
fn ResetEvent(&self) -> SysResult<()> { ... }
fn SetEvent(&self) -> SysResult<()> { ... }
fn WaitForSingleObject(&self, milliseconds: Option<u32>) -> SysResult<WAIT> { ... }
}
Available on crate feature
kernel
only.Expand description
This trait is enabled with the kernel
feature, and provides methods for
HEVENT
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn CreateEvent(
security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>,
manual_reset: bool,
initial_state: bool,
name: Option<&str>
) -> SysResult<CloseHandleGuard<HEVENT>>
fn CreateEvent( security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>, manual_reset: bool, initial_state: bool, name: Option<&str> ) -> SysResult<CloseHandleGuard<HEVENT>>
CreateEvent
function.
sourcefn CreateEventEx(
security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>,
name: Option<&str>,
flags: CREATE_EVENT,
desired_access: EVENT_RIGHTS
) -> SysResult<CloseHandleGuard<HEVENT>>
fn CreateEventEx( security_attributes: Option<&mut SECURITY_ATTRIBUTES<'_>>, name: Option<&str>, flags: CREATE_EVENT, desired_access: EVENT_RIGHTS ) -> SysResult<CloseHandleGuard<HEVENT>>
CreateEventEx
method.
sourcefn OpenEvent(
&self,
desired_access: EVENT_RIGHTS,
inherit_handle: bool,
name: &str
) -> SysResult<CloseHandleGuard<HEVENT>>
fn OpenEvent( &self, desired_access: EVENT_RIGHTS, inherit_handle: bool, name: &str ) -> SysResult<CloseHandleGuard<HEVENT>>
OpenEvent
function.
sourcefn PulseEvent(&self) -> SysResult<()>
fn PulseEvent(&self) -> SysResult<()>
PulseEvent
function.
sourcefn ResetEvent(&self) -> SysResult<()>
fn ResetEvent(&self) -> SysResult<()>
ResetEvent
function.
sourcefn WaitForSingleObject(&self, milliseconds: Option<u32>) -> SysResult<WAIT>
fn WaitForSingleObject(&self, milliseconds: Option<u32>) -> SysResult<WAIT>
WaitForSingleObject
function.
Object Safety§
This trait is not object safe.