Struct bern_kernel::exec::thread::ThreadBuilder
source · [−]pub struct ThreadBuilder { /* private fields */ }
Expand description
Builder to create a new task
Implementations
sourceimpl ThreadBuilder
impl ThreadBuilder
sourcepub fn spawn<F>(&mut self, entry: F) where
F: 'static + FnMut() -> RunnableResult,
pub fn spawn<F>(&mut self, entry: F) where
F: 'static + FnMut() -> RunnableResult,
Spawns the task and takes the entry point as closure.
Auto Trait Implementations
impl RefUnwindSafe for ThreadBuilder
impl !Send for ThreadBuilder
impl !Sync for ThreadBuilder
impl Unpin for ThreadBuilder
impl UnwindSafe for ThreadBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more