pub struct Lock {
pub condition: Arc<dyn Fn(&Actor) -> bool + Sync + Send>,
pub details: Vec<LockDetail>,
pub is_lazy: bool,
}Expand description
Contains information about jobs locked to specific actors.
Fields
condition: Arc<dyn Fn(&Actor) -> bool + Sync + Send>Specifies condition when locked jobs can be assigned to specific actor
details: Vec<LockDetail>Specifies lock details.
is_lazy: boolSpecifies whether route is created or not in solution from beginning. True means that route is not created till evaluation.
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl !UnwindSafe for Lock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more