pub enum Strategy {
Native,
Link,
Import,
}Expand description
How a provider obtains a resource.
Declared per capability in a provider manifest. The planner turns a strategy
into a concrete Via once it knows what the host filesystem supports.
Variants§
Native
The tool already reads the canonical path. Nothing is written, ever.
This is the best possible outcome and the reason the canonical layout was chosen to match the emerging standards rather than invent a new one.
Link
Same format, different location: materialise a filesystem link so both paths resolve to one inode.
Import
Same format, but write a small stub that references the canonical file using the tool’s own include syntax. Used where linking is impossible.
Implementations§
Trait Implementations§
impl Copy for Strategy
Source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
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 Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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