Docs.rs
anchor-attribute-event-0.31.1
anchor-attribute-event 0.31.1
Permalink
Docs.rs crate page
Apache-2.0
Links
Repository
crates.io
Source
Owners
armaniferrante
solana-foundation-tech
Dependencies
anchor-syn ^0.31.1
normal
proc-macro2 ^1
normal
quote ^1
normal
syn ^1
normal
Versions
66.67%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
anchor_
attribute_
event
0.31.1
All Items
Crate Items
Macros
Attribute Macros
Crate
anchor_attribute_event
Copy item path
Source
Macros
§
emit
Logs an event that can be subscribed to by clients. Uses the
sol_log_data
syscall which results in the following log:
Attribute Macros
§
event
The event attribute allows a struct to be used with
emit!
so that programs can log significant events in their programs that clients can subscribe to. Currently, this macro is for structs only.