#[non_exhaustive]pub enum ChromeForTestingManagerError {
Show 29 variants
UnsupportedRuntime {
runtime_flavor: RuntimeFlavor,
},
UnsupportedPlatform,
DetermineCacheDir,
CreateCacheDir {
cache_dir: PathBuf,
},
RemoveCacheDir {
cache_dir: PathBuf,
},
RecreateCacheDir {
cache_dir: PathBuf,
},
RequestVersions {
version_request: VersionRequest,
},
NoMatchingVersion {
version_request: VersionRequest,
},
NoChromeDownload {
version: Version,
platform: Platform,
},
NoChromedriverDownload {
version: Version,
platform: Platform,
},
CreatePlatformDir {
platform_dir: PathBuf,
},
Download {
artifact: ChromeForTestingArtifact,
url: String,
},
CreateDownloadFile {
artifact: ChromeForTestingArtifact,
path: PathBuf,
},
WriteDownloadFile {
artifact: ChromeForTestingArtifact,
},
FlushDownloadFile {
artifact: ChromeForTestingArtifact,
},
DownloadStalled {
artifact: ChromeForTestingArtifact,
consecutive_stalls: u32,
chunk_timeout: Duration,
},
OpenDownloadedZip {
path: PathBuf,
},
InvalidZip {
path: PathBuf,
},
ZipTooLarge {
path: PathBuf,
size: u128,
max_size: u128,
},
ExtractZip {
path: PathBuf,
unpack_dir: PathBuf,
},
RemoveDownloadedZip {
path: PathBuf,
},
SpawnChromedriver {
path: PathBuf,
},
WaitForChromedriverStartup {
path: PathBuf,
},
TerminateChromedriver {
port: Port,
},
PrepareChromeCapabilities {
chrome_executable: PathBuf,
},
ConfigureSessionCapabilities,
StartWebDriverSession {
port: Port,
},
RunSessionCallback,
QuitSession,
}Expand description
Error contexts reported by chrome-for-testing-manager operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedRuntime
The current Tokio runtime does not support async drop cleanup.
Fields
runtime_flavor: RuntimeFlavorThe detected runtime flavor.
UnsupportedPlatform
The current platform is unsupported by chrome-for-testing.
DetermineCacheDir
The cache directory could not be determined.
CreateCacheDir
The cache directory could not be created.
RemoveCacheDir
The cache directory could not be removed.
RecreateCacheDir
The cache directory could not be recreated.
RequestVersions
The known-good version manifest could not be requested.
Fields
version_request: VersionRequestThe requested version selection.
NoMatchingVersion
No known-good version matched the requested selection.
Fields
version_request: VersionRequestThe requested version selection.
NoChromeDownload
No Chrome download exists for the selected version and platform.
NoChromedriverDownload
No Chromedriver download exists for the selected version and platform.
CreatePlatformDir
The platform-specific package directory could not be created.
Download
The download request failed or returned a non-success status.
Fields
artifact: ChromeForTestingArtifactThe artifact being downloaded.
CreateDownloadFile
The downloaded archive file could not be created.
Fields
artifact: ChromeForTestingArtifactThe artifact being downloaded.
WriteDownloadFile
A chunk could not be written into the downloaded archive.
Fields
artifact: ChromeForTestingArtifactThe artifact being downloaded.
FlushDownloadFile
The downloaded archive file could not be flushed.
Fields
artifact: ChromeForTestingArtifactThe artifact being downloaded.
DownloadStalled
The download stalled for too long.
Fields
artifact: ChromeForTestingArtifactThe artifact being downloaded.
OpenDownloadedZip
The downloaded archive could not be opened.
InvalidZip
The downloaded archive was not a valid ZIP file.
ZipTooLarge
The downloaded archive exceeded the decompressed size safety limit.
Fields
ExtractZip
The downloaded archive could not be extracted.
RemoveDownloadedZip
The downloaded archive could not be removed after extraction.
SpawnChromedriver
The chromedriver process could not be spawned.
WaitForChromedriverStartup
Chromedriver did not report startup before the timeout.
TerminateChromedriver
The chromedriver process could not be terminated.
PrepareChromeCapabilities
Chrome capabilities could not be prepared.
ConfigureSessionCapabilities
User-provided capability setup failed.
StartWebDriverSession
The WebDriver session could not be started.
RunSessionCallback
User-provided session callback returned an error.
QuitSession
The WebDriver session could not be closed.
Trait Implementations§
Source§impl Debug for ChromeForTestingManagerError
impl Debug for ChromeForTestingManagerError
Source§impl Error for ChromeForTestingManagerError
impl Error for ChromeForTestingManagerError
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()