pub struct Lock {
pub condition_fn: 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_fn: 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: bool
Specifies 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§
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