Struct breadthread::PinnedThreadHandle [−][src]
pub struct PinnedThreadHandle<'evh, Ctrl: Controller> { /* fields omitted */ }
Expand description
A handle to the bread thread that is locked to its thread. This allows it to omit a call to
thread::current().id()
which saves time.
Implementations
Send a directive to the thread.
Set the event handler for the thread.
Process an event using the currently set event handler. This errors out if this is not pinned to the bread thread.
Use a closure with the controller, if we are on the bread thread.
Unpin this thread handle.
Trait Implementations
Auto Trait Implementations
impl<'evh, Ctrl> !RefUnwindSafe for PinnedThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> !Send for PinnedThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> !Sync for PinnedThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> Unpin for PinnedThreadHandle<'evh, Ctrl>
impl<'evh, Ctrl> !UnwindSafe for PinnedThreadHandle<'evh, Ctrl>
Blanket Implementations
Mutably borrows from an owned value. Read more