pub struct Semaphore(/* private fields */);Trait Implementations§
Source§impl Semaphore for Semaphore
impl Semaphore for Semaphore
fn new(max_count: UBaseType, initial_count: UBaseType) -> Result<Self>
fn new_with_count(initial_count: UBaseType) -> Result<Self>
fn wait(&self, ticks_to_wait: impl ToTick) -> OsalRsBool
fn wait_from_isr(&self) -> OsalRsBool
fn signal(&self) -> OsalRsBool
fn signal_from_isr(&self) -> OsalRsBool
fn delete(&mut self)
impl Send for Semaphore
impl Sync for Semaphore
Auto Trait Implementations§
impl Freeze for Semaphore
impl RefUnwindSafe for Semaphore
impl Unpin for Semaphore
impl UnwindSafe for Semaphore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more