pub struct EmbeddedAssets { /* private fields */ }
Expand description

Represent a directory of assets that are compressed and embedded.

This is the compile time generation of tauri_utils::assets::Assets from a directory. Assets from the directory are added as compiler dependencies by dummy including the original, uncompressed assets.

The assets are compressed during this runtime, and can only be represented as a TokenStream through ToTokens. The generated code is meant to be injected into an application to include the compressed assets in that application’s binary.

Implementations

Compress a collection of files and directories, ready to be generated into Assets.

Trait Implementations

Returns the “default value” for a type. Read more
Write self to the given TokenStream. Read more
Convert self directly into a TokenStream object. Read more
Convert self directly into a TokenStream object. 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.

Calls U::from(self).

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

Should always be Self
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.