exit

Function exit 

Source
pub fn exit()
Expand description

Put Event::EXIT into applications event queue and closes the application.