fix(napi): impl Send Sync to External
This commit is contained in:
parent
efacce7f66
commit
c34ccc9131
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ pub struct External<T: 'static> {
|
||||||
pub adjusted_size: i64,
|
pub adjusted_size: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl<T: 'static + Send> Send for External<T> {}
|
||||||
|
unsafe impl<T: 'static + Sync> Sync for External<T> {}
|
||||||
|
|
||||||
impl<T: 'static> TypeName for External<T> {
|
impl<T: 'static> TypeName for External<T> {
|
||||||
fn type_name() -> &'static str {
|
fn type_name() -> &'static str {
|
||||||
"External"
|
"External"
|
||||||
|
|
Loading…
Reference in a new issue