pub struct ProgressHandle { /* private fields */ }Expand description
Cheap, cloneable handle for writing progress from the Lua bridge.
Wraps the shared SessionStatus to expose only progress-related writes.
Passed to bridge::register_progress().
§Call site and threading
Called exclusively from the Lua OS thread via alc.progress().
Acquires std::sync::Mutex<SessionStatus> for a few microseconds
(single field assignment). See SessionStatus doc for full locking design.
§Poison policy
Silently skips on poison. Progress is observational (consumed by
alc_status) — a missed update degrades monitoring but does not
affect execution correctness. If you observe stale progress in
alc_status while the session is active, mutex poison from an
earlier OOM panic is a possible cause.
Implementations§
Trait Implementations§
Source§impl Clone for ProgressHandle
impl Clone for ProgressHandle
Source§fn clone(&self) -> ProgressHandle
fn clone(&self) -> ProgressHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgressHandle
impl RefUnwindSafe for ProgressHandle
impl Send for ProgressHandle
impl Sync for ProgressHandle
impl Unpin for ProgressHandle
impl UnsafeUnpin for ProgressHandle
impl UnwindSafe for ProgressHandle
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