pub enum Sdl2Message {
Lambda(Box<dyn FnMut(&mut Sdl, &mut HashMap<u32, WindowCanvas>) + Send>),
CreateWindow(Box<dyn FnMut(&mut Sdl, &mut VideoSubsystem) -> Option<WindowCanvas> + Send>, Sender<Option<u32>>),
HandleEvent(Box<dyn FnMut(&mut Sdl, &mut HashMap<u32, WindowCanvas>, &Event) -> bool + Send>, Sender<()>),
Exit,
}Variants§
Lambda(Box<dyn FnMut(&mut Sdl, &mut HashMap<u32, WindowCanvas>) + Send>)
CreateWindow(Box<dyn FnMut(&mut Sdl, &mut VideoSubsystem) -> Option<WindowCanvas> + Send>, Sender<Option<u32>>)
HandleEvent(Box<dyn FnMut(&mut Sdl, &mut HashMap<u32, WindowCanvas>, &Event) -> bool + Send>, Sender<()>)
Exit
Auto Trait Implementations§
impl Freeze for Sdl2Message
impl !RefUnwindSafe for Sdl2Message
impl Send for Sdl2Message
impl !Sync for Sdl2Message
impl Unpin for Sdl2Message
impl !UnwindSafe for Sdl2Message
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