pub enum ProviderError {
Unavailable(String),
Unloadable(String),
Unwritable(String),
Refused(String),
Timeout,
}Expand description
Why a provider could not answer.
Two shapes and a timeout, matching lanekeep_core::changed::ChangeError plus the one thing
a long-lived process has that a git invocation does not.
Variants§
The command could not be run at all — no Node, no such binary, no permission.
Split from Self::Unloadable because the remedies are different and only one of them
can work. This one used to carry both cases, so a project whose Node ran perfectly well
and whose typescript package could not be found was told to put types.command on
PATH — advice about the one part of the configuration that was already right.
Unloadable(String)
It ran, and could not load a typescript this driver can use.
The command is fine; the package is what has to move. See Self::Unavailable.
Unwritable(String)
The driver could not be written into the project’s .lanekeep/.
Its own variant because it is the one failure here that is about neither the command nor
the package: nothing has been run yet, and both other remedies — put types.command on
PATH, point types.typescript somewhere else — are advice about a configuration that
may be perfectly correct. What has to move is the directory’s permissions.
Refused(String)
It ran and refused: a request failed, or the sidecar died holding one.
Timeout
A request outlived what was left of timeouts.analysis.
Trait Implementations§
Source§impl Clone for ProviderError
impl Clone for ProviderError
Source§fn clone(&self) -> ProviderError
fn clone(&self) -> ProviderError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderError
impl Debug for ProviderError
Source§impl Display for ProviderError
impl Display for ProviderError
impl Eq for ProviderError
Source§impl Error for ProviderError
impl Error for ProviderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()