Struct nx::thread::ThreadEntry
source · [−]pub struct ThreadEntry {
pub entry_impl: ThreadEntrypointFn,
pub raw_entry: *const u8,
pub raw_args: *const u8,
}
Fields
entry_impl: ThreadEntrypointFn
raw_entry: *const u8
raw_args: *const u8
Implementations
sourceimpl ThreadEntry
impl ThreadEntry
pub fn new<T: Copy, F: 'static + Fn(&T)>(
entry_impl: ThreadEntrypointFn,
entry: F,
args: &T
) -> Self
pub fn run<T: Copy, F: 'static + Fn(&T)>(&self)
Auto Trait Implementations
impl RefUnwindSafe for ThreadEntry
impl !Send for ThreadEntry
impl !Sync for ThreadEntry
impl Unpin for ThreadEntry
impl UnwindSafe for ThreadEntry
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more