mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 06:54:33 +01:00
Clarify the need for resources-attribute
This commit is contained in:
parent
9ca10b0d8c
commit
e6bc673621
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ can access which resource.
|
||||||
|
|
||||||
All resources are declared as a single `struct` within the `#[app]`
|
All resources are declared as a single `struct` within the `#[app]`
|
||||||
module. Each field in the structure corresponds to a different resource.
|
module. Each field in the structure corresponds to a different resource.
|
||||||
|
The `struct` must be annotated with the following attribute: `#[resources]`.
|
||||||
|
|
||||||
Resources can optionally be given an initial value using the `#[init]`
|
Resources can optionally be given an initial value using the `#[init]`
|
||||||
attribute. Resources that are not given an initial value are referred to as
|
attribute. Resources that are not given an initial value are referred to as
|
||||||
*late* resources and are covered in more detail in a follow-up section in this
|
*late* resources and are covered in more detail in a follow-up section in this
|
||||||
|
|
Loading…
Reference in a new issue