pub struct Workqueue { /* private fields */ }Expand description
A workqueue that executes deferred work items on a dedicated thread.
Implementations§
Source§impl Workqueue
impl Workqueue
Sourcepub fn new(
name: &'static CStr,
priority: Priority,
stack_size: usize,
) -> Result<Self>
pub fn new( name: &'static CStr, priority: Priority, stack_size: usize, ) -> Result<Self>
Create a workqueue via heap allocation (only in heap mode).
name must be a &'static CStr; the easiest source is a
c"..." literal (Rust 1.77+). The compiler enforces null
termination — &[u8] without \0 was the previous shape and
was undefined-behaviour-prone.
Sourcepub fn handle(&self) -> ove_workqueue_t
pub fn handle(&self) -> ove_workqueue_t
Return the underlying ove_workqueue_t handle for advanced
FFI interop. Normal app code should pass the Workqueue
itself to Work::submit / Work::submit_delayed.
Trait Implementations§
impl Send for Workqueue
impl Sync for Workqueue
Auto Trait Implementations§
impl Freeze for Workqueue
impl RefUnwindSafe for Workqueue
impl Unpin for Workqueue
impl UnsafeUnpin for Workqueue
impl UnwindSafe for Workqueue
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