pub enum Message {
None,
Window(WindowMessage),
Wait,
ExitLoop,
}Variants§
Implementations§
Source§impl Message
impl Message
pub fn take(&mut self) -> Message
pub fn replace(&mut self, message: Message) -> Message
pub fn new( _hwnd: HWND, message: u32, w_param: WPARAM, l_param: LPARAM, ) -> Option<Self>
pub fn is_key(&self, key: Key, state: KeyState) -> bool
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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