pub struct ApplicationImpl { /* private fields */ }
Trait Implementations§
Source§impl ApplicationExt for ApplicationImpl
impl ApplicationExt for ApplicationImpl
Source§fn assert_correct_thread(&self)
fn assert_correct_thread(&self)
Asserts if not on the GUI thread
Source§fn dispatch(
&self,
work: unsafe fn(ApplicationImpl, *mut ()),
_data: *mut (),
) -> bool
fn dispatch( &self, work: unsafe fn(ApplicationImpl, *mut ()), _data: *mut (), ) -> bool
Dispatches work to be executed on the GUI thread.
Source§fn dispatch_delayed(
&self,
work: unsafe fn(ApplicationImpl, *mut ()),
_data: *mut (),
delay: Duration,
) -> bool
fn dispatch_delayed( &self, work: unsafe fn(ApplicationImpl, *mut ()), _data: *mut (), delay: Duration, ) -> bool
Dispatches work to be executed on the GUI thread, but delayed by the specified number of milliseconds.
Source§fn exit(&self, exit_code: i32)
fn exit(&self, exit_code: i32)
Causes the main loop to exit and lets it return the given code.
Source§fn exit_threadsafe(&self, exit_code: i32)
fn exit_threadsafe(&self, exit_code: i32)
Same as
exit
, but is thread-safe.fn initialize( argc: c_int, argv: *mut *mut c_char, _settings: &ApplicationSettings, ) -> CbwResult<Self>
Source§fn mark_as_done(&self)
fn mark_as_done(&self)
When this is called, the runtime will exit as soon as there are no more windows left.
Source§impl Clone for ApplicationImpl
impl Clone for ApplicationImpl
Source§fn clone(&self) -> ApplicationImpl
fn clone(&self) -> ApplicationImpl
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ApplicationImpl
Auto Trait Implementations§
impl Freeze for ApplicationImpl
impl RefUnwindSafe for ApplicationImpl
impl !Send for ApplicationImpl
impl !Sync for ApplicationImpl
impl Unpin for ApplicationImpl
impl UnwindSafe for ApplicationImpl
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