Struct tauri::Context[][src]

pub struct Context<A: Assets> { /* fields omitted */ }
Expand description

User supplied data required inside of a Tauri application.

Stability

This is the output of the tauri::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.

Create a new Context from the minimal required items.

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.

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.