[][src]Struct windows_win::Msg

pub struct Msg { /* fields omitted */ }

Wrapper over Windows messages.

On drop it translates and dispatches message. You can do it yourself though.

Methods

impl Msg[src]

pub fn new(message: MSG) -> Msg[src]

Creates new instance by taking raw MSG

pub fn id(&self) -> UINT[src]

Message identifier.

pub fn as_ptr(&self) -> *const MSG[src]

Pointer to inner message.

pub fn as_mut_ptr(&mut self) -> *mut MSG[src]

Mutable pointer to inner message.

pub fn inner(&self) -> MSG[src]

Retrieves raw Windows Message.

Ownership is not passed so do not manually dispatch it.

pub fn into_inner(self) -> MSG[src]

Retrieves raw Windows Message and transfers ownership.

After that user is responsible to dispatch message.

pub fn dispatch(self)[src]

Drops and Dispatches underlying Windows Message. You cannot use it after that.

Trait Implementations

impl Drop for Msg[src]

Auto Trait Implementations

impl !Send for Msg

impl !Sync for Msg

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]