#[repr(C)]pub struct k_poll_signal {
pub poll_events: _dnode,
pub signaled: u32,
pub result: i32,
}Expand description
@brief Poll signal object
A poll signal is a kernel object that can be raised from threads or ISRs with k_poll_signal_raise(), and polled on with k_poll() using @ref K_POLL_TYPE_SIGNAL.
Fields§
§poll_events: _dnode@cond INTERNAL_HIDDEN / /** PRIVATE - DO NOT TOUCH
signaled: u321 if the event has been signaled, 0 otherwise. Stays set to 1 until user resets it to 0.
result: i32custom result value passed to k_poll_signal_raise() if needed
Trait Implementations§
Source§impl Default for k_poll_signal
impl Default for k_poll_signal
Source§fn default() -> k_poll_signal
fn default() -> k_poll_signal
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for k_poll_signal
impl RefUnwindSafe for k_poll_signal
impl !Send for k_poll_signal
impl !Sync for k_poll_signal
impl Unpin for k_poll_signal
impl UnsafeUnpin for k_poll_signal
impl UnwindSafe for k_poll_signal
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