Skip to main content

ChromeForTestingManagerError

Enum ChromeForTestingManagerError 

Source
#[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
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.
§

UnsupportedRuntime

The current Tokio runtime does not support async drop cleanup.

Fields

§runtime_flavor: RuntimeFlavor

The 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.

Fields

§cache_dir: PathBuf

The cache directory path.

§

RemoveCacheDir

The cache directory could not be removed.

Fields

§cache_dir: PathBuf

The cache directory path.

§

RecreateCacheDir

The cache directory could not be recreated.

Fields

§cache_dir: PathBuf

The cache directory path.

§

RequestVersions

The known-good version manifest could not be requested.

Fields

§version_request: VersionRequest

The requested version selection.

§

NoMatchingVersion

No known-good version matched the requested selection.

Fields

§version_request: VersionRequest

The requested version selection.

§

NoChromeDownload

No Chrome download exists for the selected version and platform.

Fields

§version: Version

The selected Chrome version.

§platform: Platform

The detected platform.

§

NoChromedriverDownload

No Chromedriver download exists for the selected version and platform.

Fields

§version: Version

The selected Chrome version.

§platform: Platform

The detected platform.

§

CreatePlatformDir

The platform-specific package directory could not be created.

Fields

§platform_dir: PathBuf

The platform-specific package directory.

§

Download

The download request failed or returned a non-success status.

Fields

§artifact: ChromeForTestingArtifact

The artifact being downloaded.

§url: String

The download URL.

§

CreateDownloadFile

The downloaded archive file could not be created.

Fields

§artifact: ChromeForTestingArtifact

The artifact being downloaded.

§path: PathBuf

The archive path.

§

WriteDownloadFile

A chunk could not be written into the downloaded archive.

Fields

§artifact: ChromeForTestingArtifact

The artifact being downloaded.

§

FlushDownloadFile

The downloaded archive file could not be flushed.

Fields

§artifact: ChromeForTestingArtifact

The artifact being downloaded.

§

DownloadStalled

The download stalled for too long.

Fields

§artifact: ChromeForTestingArtifact

The artifact being downloaded.

§consecutive_stalls: u32

The number of consecutive stalls observed.

§chunk_timeout: Duration

The timeout for each stall.

§

OpenDownloadedZip

The downloaded archive could not be opened.

Fields

§path: PathBuf

The archive path.

§

InvalidZip

The downloaded archive was not a valid ZIP file.

Fields

§path: PathBuf

The archive path.

§

ZipTooLarge

The downloaded archive exceeded the decompressed size safety limit.

Fields

§path: PathBuf

The archive path.

§size: u128

The reported decompressed size in bytes.

§max_size: u128

The configured maximum decompressed size in bytes.

§

ExtractZip

The downloaded archive could not be extracted.

Fields

§path: PathBuf

The archive path.

§unpack_dir: PathBuf

The destination directory.

§

RemoveDownloadedZip

The downloaded archive could not be removed after extraction.

Fields

§path: PathBuf

The archive path.

§

SpawnChromedriver

The chromedriver process could not be spawned.

Fields

§path: PathBuf

The chromedriver executable path.

§

WaitForChromedriverStartup

Chromedriver did not report startup before the timeout.

Fields

§path: PathBuf

The chromedriver executable path.

§

TerminateChromedriver

The chromedriver process could not be terminated.

Fields

§port: Port

The chromedriver port.

§

PrepareChromeCapabilities

Chrome capabilities could not be prepared.

Fields

§chrome_executable: PathBuf

The Chrome executable path.

§

ConfigureSessionCapabilities

User-provided capability setup failed.

§

StartWebDriverSession

The WebDriver session could not be started.

Fields

§port: Port

The chromedriver port.

§

RunSessionCallback

User-provided session callback returned an error.

§

QuitSession

The WebDriver session could not be closed.

Trait Implementations§

Source§

impl Debug for ChromeForTestingManagerError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ChromeForTestingManagerError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ChromeForTestingManagerError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<C, T> IntoReport<T> for C
where C: 'static + ObjectMarkerFor<T> + Error,

Source§

type Context = C

The context type of the resulting report.
Source§

type Ownership = Mutable

The ownership marker of the resulting report.
Source§

fn into_report(self) -> Report<C, Mutable, T>

Converts self into a Report with the specified thread-safety marker. Read more
Source§

impl<C, T> IntoReportCollection<T> for C
where C: ObjectMarkerFor<T> + Error,

Source§

type Context = C

The context type of the resulting report collection.
Source§

fn into_report_collection(self) -> ReportCollection<C, T>

Converts self into a ReportCollection with the specified thread-safety marker. Read more
Source§

impl<O> ObjectMarkerFor<Local> for O
where O: 'static,

Source§

impl<O> ObjectMarkerFor<SendSync> for O
where O: 'static + Send + Sync,

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Sink for T
where T: Send + 'static,