Struct breadthread::ThreadHandle [−][src]
#[repr(transparent)]pub struct ThreadHandle<'evh, Ctrl: Controller> { /* fields omitted */ }
Expand description
A handle to the bread thread that can be sent between threads.
Implementations
Send a directive to the thread.
Set the event handler for the thread.
Process an event using the currently set event handler.
Errors
This errors out if not run on the bread thread.
Use a closure with the controller, if we are on the bread thread.
Pin this thread handle to a thread.
Initialize a new BreadThread
in newly spawned thread, then clone a handle to that thread.
Trait Implementations
Auto Trait Implementations
impl<'evh, Ctrl> !RefUnwindSafe for ThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> Send for ThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> Sync for ThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> Unpin for ThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> !UnwindSafe for ThreadHandle<'evh, Ctrl>
Blanket Implementations
Mutably borrows from an owned value. Read more