Struct vrp_core::models::Lock [−][src]
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>Expand description
Specifies condition when locked jobs can be assigned to specific actor
details: Vec<LockDetail>Expand description
Specifies lock details.
is_lazy: boolExpand description
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,