os-trait 0.11.0

Traits used to adapter different embedded RTOS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub use crate::{
    OsInterface,
    notifier::{NotifierInterface as _, NotifyWaiterInterface as _},
    timeout_trait::prelude::*,
};

cfg_if::cfg_if! {
    if #[cfg(feature = "std")] {
        pub use std::sync::Arc;
    } else if #[cfg(feature = "alloc")] {
        pub use alloc::vec::Vec;
        pub use alloc::boxed::Box;
        pub use alloc::sync::Arc;
    }
}