pub struct ThreadUtilsImpl {
pub inner: Pin<Box<dyn Any>>,
pub create: fn(this: &ThreadUtilsImpl, props: Option<&Dict>, start: Box<dyn FnOnce() -> ThreadReturn + Send + 'static>) -> Option<Thread>,
pub join: fn(this: &ThreadUtilsImpl, thread: Thread) -> Result<ThreadReturn>,
pub get_rt_range: fn(this: &ThreadUtilsImpl, props: Option<&Dict>) -> Result<(i32, i32)>,
pub acquire_rt: fn(this: &ThreadUtilsImpl, thread: &Thread, priority: i32) -> Result<()>,
pub drop_rt: fn(this: &ThreadUtilsImpl, thread: &Thread) -> Result<()>,
}Fields§
§inner: Pin<Box<dyn Any>>§create: fn(this: &ThreadUtilsImpl, props: Option<&Dict>, start: Box<dyn FnOnce() -> ThreadReturn + Send + 'static>) -> Option<Thread>§join: fn(this: &ThreadUtilsImpl, thread: Thread) -> Result<ThreadReturn>§get_rt_range: fn(this: &ThreadUtilsImpl, props: Option<&Dict>) -> Result<(i32, i32)>§acquire_rt: fn(this: &ThreadUtilsImpl, thread: &Thread, priority: i32) -> Result<()>§drop_rt: fn(this: &ThreadUtilsImpl, thread: &Thread) -> Result<()>Implementations§
Source§impl ThreadUtilsImpl
impl ThreadUtilsImpl
pub fn create<F>(&self, props: Option<&Dict>, start: F) -> Option<Thread>
pub fn join(&self, thread: Thread) -> Result<ThreadReturn>
pub fn get_rt_range(&self, props: Option<&Dict>) -> Result<(i32, i32)>
pub fn acquire_rt(&self, thread: &Thread, priority: i32) -> Result<()>
pub fn drop_rt(&self, thread: &Thread) -> Result<()>
Trait Implementations§
Source§impl Interface for ThreadUtilsImpl
impl Interface for ThreadUtilsImpl
Source§unsafe fn make_native(&self) -> *mut CInterface
unsafe fn make_native(&self) -> *mut CInterface
Return a C-compatible spa_interface pointer Read more
Source§unsafe fn free_native(thread: *mut CInterface)
unsafe fn free_native(thread: *mut CInterface)
Return a C-compatible spa_interface pointer Read more
fn type_id(&self) -> TypeIdwhere
Self: 'static,
Auto Trait Implementations§
impl Freeze for ThreadUtilsImpl
impl !RefUnwindSafe for ThreadUtilsImpl
impl !Send for ThreadUtilsImpl
impl !Sync for ThreadUtilsImpl
impl Unpin for ThreadUtilsImpl
impl !UnwindSafe for ThreadUtilsImpl
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