struct Readiness {
outcome: Mutex<Option<Result<(), (PathBuf, String)>>>,
settled: Condvar,
}Expand description
How the weights ended up, once the worker has resolved them.
A failure is held as the parts of Error::ModelLoad rather than
the error itself, because every waiter needs its own copy and
Error is not Clone.
Fields§
§outcome: Mutex<Option<Result<(), (PathBuf, String)>>>§settled: CondvarImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Readiness
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnsafeUnpin for Readiness
impl UnwindSafe for Readiness
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