mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
Make SePolicy
have Send
It's safe to send between threads, and I want to do so in ostree-rs-ext to send to a tokio worker thread.
This commit is contained in:
parent
7b47de7a14
commit
e33767cc2a
@ -192,6 +192,7 @@ status = "generate"
|
||||
[[object]]
|
||||
name = "OSTree.SePolicy"
|
||||
status = "generate"
|
||||
concurrency = "send"
|
||||
[[object.function]]
|
||||
# [IGNORE] has an unused raw pointer parameter
|
||||
name = "fscreatecon_cleanup"
|
||||
|
2
rust-bindings/rust/src/auto/se_policy.rs
generated
2
rust-bindings/rust/src/auto/se_policy.rs
generated
@ -106,6 +106,8 @@ impl SePolicy {
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for SePolicy {}
|
||||
|
||||
impl fmt::Display for SePolicy {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.write_str("SePolicy")
|
||||
|
Loading…
Reference in New Issue
Block a user