pub struct EvtThread<T> { /* private fields */ }Implementations§
Source§impl<T: 'static> EvtThread<T>
impl<T: 'static> EvtThread<T>
pub fn new(threvt: ThreadEvent) -> Result<Self, Box<dyn Error>>
pub fn is_exited(&mut self) -> bool
pub fn start<F: FnOnce() -> T + 'static + Send + Sync>( &mut self, ncall: F, ) -> Result<(), Box<dyn Error>>
pub fn get_return(&mut self) -> Option<T>
pub fn stop(&mut self) -> Result<(), Box<dyn Error>>
pub fn try_join(&mut self, mills: i32) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EvtThread<T>
impl<T> !RefUnwindSafe for EvtThread<T>
impl<T> Send for EvtThread<T>
impl<T> Sync for EvtThread<T>
impl<T> Unpin for EvtThread<T>
impl<T> !UnwindSafe for EvtThread<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more