Struct portus::CCPHandle [−][src]
pub struct CCPHandle { pub continue_listening: Arc<AtomicBool>, pub join_handle: JoinHandle<Result<()>>, }
A handle to manage running instances of the CCP execution loop.
Fields
continue_listening: Arc<AtomicBool>
join_handle: JoinHandle<Result<()>>
Methods
impl CCPHandle
[src]
impl CCPHandle
pub fn kill(&self)
[src]
pub fn kill(&self)
Instruct the execution loop to exit.
pub fn wait(self) -> Result<()>
[src]
pub fn wait(self) -> Result<()>
Collect the error from the thread running the CCP execution loop once it exits.