#[non_exhaustive]pub enum WorkerSource {
Env,
Sibling,
Path,
}Expand description
Where a parse worker was found.
#[non_exhaustive]: this set is already known to be growing — #212’s own
proposal anticipates a --parse-worker <path> flag, which is a fourth
source. Sealing it now costs nothing; adding a variant later to a sealed
enum is not a breaking change, while adding one to an open enum is (#241).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Env
The GONZALO_PARSE_WORKER environment override.
Sibling
Beside the running executable (the installed / cargo build layout).
Path
On PATH — the symlink and split-install layouts, where a sibling
check cannot succeed but the worker is plainly available.
Trait Implementations§
Source§impl Clone for WorkerSource
impl Clone for WorkerSource
Source§fn clone(&self) -> WorkerSource
fn clone(&self) -> WorkerSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorkerSource
Source§impl Debug for WorkerSource
impl Debug for WorkerSource
impl Eq for WorkerSource
Source§impl PartialEq for WorkerSource
impl PartialEq for WorkerSource
impl StructuralPartialEq for WorkerSource
Auto Trait Implementations§
impl Freeze for WorkerSource
impl RefUnwindSafe for WorkerSource
impl Send for WorkerSource
impl Sync for WorkerSource
impl Unpin for WorkerSource
impl UnsafeUnpin for WorkerSource
impl UnwindSafe for WorkerSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.