mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Add a Reflectable bound to Trusted's type parameter.
This commit is contained in:
parent
b59f54ce81
commit
5f6b791e62
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ unsafe impl Send for TrustedReference {}
|
|||
/// shared among tasks for use in asynchronous operations. The underlying
|
||||
/// DOM object is guaranteed to live at least as long as the last outstanding
|
||||
/// `Trusted<T>` instance.
|
||||
pub struct Trusted<T> {
|
||||
pub struct Trusted<T: Reflectable> {
|
||||
/// A pointer to the Rust DOM object of type T, but void to allow
|
||||
/// sending `Trusted<T>` between tasks, regardless of T's sendability.
|
||||
ptr: *const libc::c_void,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue