mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update Trusted<T> documentation
This commit is contained in:
parent
77cb5371b3
commit
9ec8575f57
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
//! To guarantee the lifetime of a DOM object when performing asynchronous operations,
|
||||
//! obtain a `Trusted<T>` from that object and pass it along with each operation.
|
||||
//! A usable pointer to the original DOM object can be obtained on the script thread
|
||||
//! from a `Trusted<T>` via the `to_temporary` method.
|
||||
//! from a `Trusted<T>` via the `root` method.
|
||||
//!
|
||||
//! The implementation of `Trusted<T>` is as follows:
|
||||
//! The `Trusted<T>` object contains an atomic reference counted pointer to the Rust DOM object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue