pub enum PathScope {
WithinCamp,
Unresolvable,
OutsideCamp,
System,
}Expand description
How far a literal-provenance argument reaches relative to camp_root.
Only computable when Provenance is Literal; arg_fact sets
ArgFact::scope to None for all other provenances.
Variants§
WithinCamp
Resolves to a path at or under camp_root (safe for read operations).
Unresolvable
Non-path argument (git ref, flag value, …) or relative with no static anchor — cannot determine scope statically.
OutsideCamp
Absolute path outside camp_root, or relative path that escapes via ...
System
Under a well-known OS system directory: /etc, /usr, /bin, /sbin,
/lib, /var, /dev, /proc, /sys, /boot, /root, /run.
Trait Implementations§
impl Copy for PathScope
Source§impl<'de> Deserialize<'de> for PathScope
impl<'de> Deserialize<'de> for PathScope
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 PathScope
impl StructuralPartialEq for PathScope
Auto Trait Implementations§
impl Freeze for PathScope
impl RefUnwindSafe for PathScope
impl Send for PathScope
impl Sync for PathScope
impl Unpin for PathScope
impl UnsafeUnpin for PathScope
impl UnwindSafe for PathScope
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