pub struct Markers<E> {
pub failure_marker: bool,
pub retriable: Box<dyn Fn(&E) -> bool + Sync + Send>,
pub success_marker: bool,
pub hashes: bool,
pub folder: bool,
}
Fields§
§failure_marker: bool
Use failure markers {output}.failure to skip previously failed calls.
retriable: Box<dyn Fn(&E) -> bool + Sync + Send>
§success_marker: bool
Use success markers {output}.success to rerun when arguments or code have changed.
This only makes sense with the hashes
flag.
hashes: bool
Use code and arguments hashes for markers. If they changed, rerun failed and successful runs.
folder: bool
Assume the output
attribute is a folder and store the markers in {output}/success and
{output}/failure.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Markers<E>
impl<E> !RefUnwindSafe for Markers<E>
impl<E> Send for Markers<E>
impl<E> Sync for Markers<E>
impl<E> Unpin for Markers<E>
impl<E> !UnwindSafe for Markers<E>
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