pub enum Via {
Symlink,
Junction,
Import,
}Expand description
The concrete mechanism used to materialise a capability.
Note the deliberate absence of hard links: they are indistinguishable from
regular files after the fact, and any editor performing an atomic save
(write-temp-then-rename) silently breaks the association, leaving two files
that diverge with no way to detect it. See docs/adr/0003-link-primitives.md.
Variants§
Symlink
A symbolic link storing a workspace-relative target.
Junction
A Windows directory junction. Needs no privileges, but stores an absolute target, so it must be rebuilt if the workspace moves.
Import
A stub file containing a tool-specific include directive.
Implementations§
Trait Implementations§
impl Copy for Via
Source§impl<'de> Deserialize<'de> for Via
impl<'de> Deserialize<'de> for Via
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 Via
impl StructuralPartialEq for Via
Auto Trait Implementations§
impl Freeze for Via
impl RefUnwindSafe for Via
impl Send for Via
impl Sync for Via
impl Unpin for Via
impl UnsafeUnpin for Via
impl UnwindSafe for Via
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