pub enum Gate {
Present,
Rules(fn(&str) -> bool),
Value(fn(&str) -> bool),
}Expand description
When a file that writes a gated key needs the row’s since.
Variants§
Present
The key’s presence: an older Mars misreads how the package reads (schema, plugin).
Rules(fn(&str) -> bool)
The key holds tool rules, and the rule’s action decides: an older Mars drops the rule,
so a restricting one (deny, ask) must not meet one, and an allow loses only a grant.
Value(fn(&str) -> bool)
The key’s value decides: an older Mars refuses a value it doesn’t know and fails the
whole sync, so a file that writes a new value needs the row’s since.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Gate
impl Freeze for Gate
impl Move for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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