#[repr(C)]pub struct k_timeout_t {
pub ticks: i64,
}
Expand description
@brief Kernel timeout type
Timeout arguments presented to kernel APIs are stored in this
opaque type, which is capable of representing times in various
formats and units. It should be constructed from application data
using one of the macros defined for this purpose (e.g. K_MSEC()
,
K_TIMEOUT_ABS_TICKS()
, etc…), or be one of the two constants
K_NO_WAIT or K_FOREVER. Applications should not inspect the
internal data once constructed. Timeout values may be compared for
equality with the K_TIMEOUT_EQ()
macro.
Fields§
§ticks: i64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for k_timeout_t
impl RefUnwindSafe for k_timeout_t
impl Send for k_timeout_t
impl Sync for k_timeout_t
impl Unpin for k_timeout_t
impl UnwindSafe for k_timeout_t
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