[−][src]Struct miow::Overlapped
A wrapper around OVERLAPPED
to provide "rustic" accessors and
initializers.
Implementations
impl Overlapped
[src]
pub fn zero() -> Overlapped
[src]
Creates a new zeroed out instance of an overlapped I/O tracking state.
This is suitable for passing to methods which will then later get notified via an I/O Completion Port.
pub fn initialize_with_autoreset_event() -> Result<Overlapped>
[src]
Creates a new Overlapped
with an initialized non-null hEvent
. The caller is
responsible for calling CloseHandle
on the hEvent
field of the returned
Overlapped
. The event is created with bManualReset
set to FALSE
, meaning after a
single thread waits on the event, it will be reset.
pub unsafe fn from_raw<'a>(ptr: *mut OVERLAPPED) -> &'a mut Overlapped
[src]
Creates a new Overlapped
function pointer from the underlying
OVERLAPPED
, wrapping in the "rusty" wrapper for working with
accessors.
Unsafety
This function doesn't validate ptr
nor the lifetime of the returned
pointer at all, it's recommended to use this method with extreme
caution.
pub fn raw(&self) -> *mut OVERLAPPED
[src]
Gain access to the raw underlying data
pub fn set_offset(&mut self, offset: u64)
[src]
Sets the offset inside this overlapped structure.
Note that for I/O operations in general this only has meaning for I/O handles that are on a seeking device that supports the concept of an offset.
pub fn offset(&self) -> u64
[src]
Reads the offset inside this overlapped structure.
pub fn set_event(&mut self, event: HANDLE)
[src]
Sets the hEvent
field of this structure.
The event specified can be null.
pub fn event(&self) -> HANDLE
[src]
Reads the hEvent
field of this structure, may return null.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,