From 3df1680888660ebbab4d7ca243939f192aa5d759 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 11 Sep 2019 16:20:15 +0100 Subject: [PATCH] devices: Require Interrupt trait implementations to support Sync This is necesary to be able easily translate an Interrupt to a VirtioInterrupt which is already Sync. Signed-off-by: Rob Bradford --- devices/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/src/lib.rs b/devices/src/lib.rs index b106d86fd..c6e86da99 100644 --- a/devices/src/lib.rs +++ b/devices/src/lib.rs @@ -67,6 +67,6 @@ pub enum Error { IoError(io::Error), } -pub trait Interrupt: Send { +pub trait Interrupt: Send + Sync { fn deliver(&self) -> result::Result<(), std::io::Error>; }