pub struct ProcCtx(/* private fields */);Expand description
Object that denotes ownership of a ProcSem semaphore.
When the process is complete this object must be dropped so the semaphore can be acquired again.
Implementations§
Source§impl ProcCtx
impl ProcCtx
Sourcepub fn end(&self, text: &str)
pub fn end(&self, text: &str)
Set an end-state message.
The purpose of the “end message” is to be able to leave a final “result”
message that can be read by the ProcSem.
Calling this function will not cause the StateReporter::end() to be
called. However, if an end message has been set, a clone if it will be
passed to the StateReporter::end() callback.
The message will be stored in the internal ProcSem storage
and can be retrieved using ProcSem::endmsg().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcCtx
impl !RefUnwindSafe for ProcCtx
impl Send for ProcCtx
impl Sync for ProcCtx
impl Unpin for ProcCtx
impl !UnwindSafe for ProcCtx
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