pub struct RunPolicy {
pub mode: Mode,
pub write: WriteLimit,
pub admit: AdmissionRequirement,
pub landing: LandingPolicy,
}Expand description
The four values one run works under, chosen when it is dispatched
and written into its run_started line.
One value because the four always travel together — on the wire, in the ledger and through the dispatch — and are chosen independently, so every combination has a meaning.
Fields§
§mode: Mode§write: WriteLimitWhat the run may do to a file that already exists.
admit: AdmissionRequirementThe evidence its work must carry to be merged.
landing: LandingPolicyWhether its work takes the ordinary road.
Implementations§
Trait Implementations§
impl Copy for RunPolicy
Source§impl<'de> Deserialize<'de> for RunPolicy
impl<'de> Deserialize<'de> for RunPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunPolicy
impl StructuralPartialEq for RunPolicy
Auto Trait Implementations§
impl Freeze for RunPolicy
impl RefUnwindSafe for RunPolicy
impl Send for RunPolicy
impl Sync for RunPolicy
impl Unpin for RunPolicy
impl UnsafeUnpin for RunPolicy
impl UnwindSafe for RunPolicy
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