Struct tauri::Context

source ·
pub struct Context<A: Assets> { /* private fields */ }
Expand description

User supplied data required inside of a Tauri application.

Stability

This is the output of the generate_context macro, and is not considered part of the stable API. Unless you know what you are doing and are prepared for this type to have breaking changes, do not create it yourself.

Implementations§

The config the application was prepared with.

A mutable reference to the config the application was prepared with.

The assets to be served directly by Tauri.

A mutable reference to the assets to be served directly by Tauri.

The default window icon Tauri should use when creating windows.

A mutable reference to the default window icon Tauri should use when creating windows.

The icon to use on the system tray UI.

A mutable reference to the icon to use on the system tray UI.

Package information.

A mutable reference to the package information.

The application pattern.

The scoped shell commands, where the HashMap key is the name each configuration.

Create a new Context from the minimal required items.

Trait Implementations§

Formats the value using the given formatter. 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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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