Struct fp_rust::handler::HandlerThread [−][src]
pub struct HandlerThread { /* fields omitted */ }
Expand description
HandlerThread
could receive FnMut
and run them on its own thread
.
It implements Handler
trait
simply and works well.
This is kind of facade which just handles thread
,
and bypasses jobs to HandlerThreadInner
(private implementations).
Remarks
This is highly inspired by Android Handler
concepts.
Implementations
Trait Implementations
Did this Handler
start?
Return true
when it did started (no matter it has stopped or not) Read more
Is this Handler
alive?
Return true
when it has started and not stopped yet. Read more
Stop Cor
.
This will make self.is_alive
() returns false
,
and all FnMut
posted by self.post
() will not be executed.
(Because it has stopped :P, that’s reasonable) Read more
Auto Trait Implementations
impl RefUnwindSafe for HandlerThread
impl Send for HandlerThread
impl Sync for HandlerThread
impl Unpin for HandlerThread
impl UnwindSafe for HandlerThread
Blanket Implementations
Mutably borrows from an owned value. Read more