Introduce PeripheralBorrow trait

This commit is contained in:
Dario Nieuwenhuis 2021-03-19 04:02:42 +01:00
parent f4791b826a
commit 9c4087ac5c

View File

@ -14,3 +14,8 @@ pub use mutex::*;
pub use portal::*;
pub use signal::*;
pub use waker::*;
pub trait PeripheralBorrow {
type Target;
unsafe fn unborrow(self) -> Self::Target;
}