pub enum ScopeKind {
Paths,
Hosts,
Programs,
Targets,
}Expand description
What kind of scope a declaration carries. The registry pins exactly this (“whoever declares, pins”): paths become absolute, hosts normalized, targets/programs kept as declared.
Variants§
Paths
Filesystem paths (fs:read) — resolved absolute at install.
Hosts
Network hosts (net:http) — normalized (trim + lowercase) at install.
Programs
Process programs (process:spawn) — empty = unrestricted.
Targets
Device targets (device:input / device:capture) — pinned as declared.
Trait Implementations§
impl Copy for ScopeKind
impl Eq for ScopeKind
impl StructuralPartialEq for ScopeKind
Auto Trait Implementations§
impl Freeze for ScopeKind
impl RefUnwindSafe for ScopeKind
impl Send for ScopeKind
impl Sync for ScopeKind
impl Unpin for ScopeKind
impl UnsafeUnpin for ScopeKind
impl UnwindSafe for ScopeKind
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