pub enum Question {
Kind(PackagePath),
Confined(PackagePath),
Read(PackagePath),
List(PackagePath),
}Expand description
A question the loader needs answered before it can continue.
Deliberately exhaustive: a driver must answer every kind of question, so a new kind would rightly be a breaking change.
Variants§
Kind(PackagePath)
What kind of entry is this path? Follow symlinks; answer
Answer::Kind(None) if it does not exist.
Confined(PackagePath)
Does this path, fully resolved (symlinks and all), stay within the
filesystem-resolved plugin root? Sources without links — archives,
memory maps — truthfully answer true (§4.1).
Read(PackagePath)
Read the file’s bytes.
List(PackagePath)
List the directory’s immediate entries. Order is up to the source; sort for reproducible output.
Implementations§
Trait Implementations§
impl Eq for Question
impl StructuralPartialEq for Question
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.