Struct druid_shell::Application [−][src]
pub struct Application { /* fields omitted */ }
Expand description
The top level application object.
This can be thought of as a reference and it can be safely cloned.
Implementations
Get the current globally active Application
.
A globally active Application
exists
after new
is called and until run
returns.
Panics
Panics if there is no globally active Application
.
For a non-panicking function use try_global
.
This function will also panic if called from a non-main thread.
Start the Application
runloop.
The provided handler
will be used to inform of events.
This will consume the Application
and block the current thread
until the Application
has finished executing.
Panics
Panics if the Application
is already running.
Quit the Application
.
This will cause run
to return control back to the calling function.
Returns the current locale string.
This should a Unicode language identifier.
Trait Implementations
Returns a handle to the primary system clipboard. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more