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

Create a new Application.

Errors

Errors if an Application has already been created.

This may change in the future. See druid#771 for discussion.

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.

Get the current globally active Application.

A globally active Application exists after new is called and until run returns.

Panics

Panics 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 a handle to the system clipboard.

Returns the current locale string.

This should a Unicode language identifier.

Trait Implementations

Returns a handle to the primary system clipboard. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

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