Skip to main content

Detail

Enum Detail 

Source
#[non_exhaustive]
pub enum Detail {
Show 27 variants PortInUse { port: u16, protocol: String, holder: Option<PortHolder>, }, ToolMissing { tool: String, }, ToolTooOld { tool: String, found: String, required: String, }, ToolUnanswered { tool: String, }, Timeout { timed_out: TimedOut, }, DownloadStalled { what: DownloadKind, after_s: u64, }, DownloadFailed { what: DownloadKind, reason: String, }, Elevation { reason: String, }, NotReady { condition: String, detail: String, }, RunningElsewhere { recorded: String, asked: String, }, NotParkable { mode: String, }, PartlyGone { machines: Vec<String>, }, SecretMissing { name: String, }, InputInvalid { name: String, reason: String, }, ToolFailed { reason: String, }, ProjectInvalid { dir: PathBuf, }, MachineUnknown { machine: String, }, NetworkUnknown { network: String, }, ProviderRefused { provider: String, need: Option<ProviderNeed>, }, ToolDenied { tool: String, }, CredentialsExpired { cloud: Option<Cloud>, reason: String, }, AddressPoolOverlap { reason: String, }, NoConsole { machine: String, }, ServerAuthFailed { server: Option<String>, }, Io { path: PathBuf, action: String, }, StateConflict { expected: RunState, found: Option<RunState>, }, LeaseHeld { scope: String, pid: u32, },
}
Expand description

A failure’s typed fields, by its kind.

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

PortInUse

A host port the run publishes is taken.

Fields

§port: u16

The port.

§protocol: String

tcp or udp.

§holder: Option<PortHolder>

The process listening on it, when it was found.

§

ToolMissing

A tool isn’t installed.

Fields

§tool: String

The tool.

§

ToolTooOld

A tool is older than the run needs.

Fields

§tool: String

The tool.

§found: String

The version it answered with.

§required: String

The oldest version the run takes.

§

ToolUnanswered

A tool’s service didn’t answer (Docker’s engine).

Fields

§tool: String

The tool.

§

Timeout

A step ran out of time.

Fields

§timed_out: TimedOut

Which limit it ran into.

§

DownloadStalled

A download showed no progress for as long as a download may.

Fields

§what: DownloadKind

What it downloads.

§after_s: u64

How long it went with no progress, in seconds.

§

DownloadFailed

A download couldn’t be made.

Fields

§what: DownloadKind

What it downloads.

§reason: String

The last try’s last error lines, or its exit status (masked).

§

Elevation

The elevation the run’s commands need couldn’t be had.

Fields

§reason: String

Why (the prompt declined, the elevated session ended).

§

NotReady

A ready condition didn’t hold.

Fields

§condition: String

The condition (every machine of the run, tcp 127.0.0.1:8080).

§detail: String

Why it didn’t.

§

RunningElsewhere

The run is recorded on another place than the one asked for.

Fields

§recorded: String

Where it is recorded.

§asked: String

Where it was asked for.

§

NotParkable

The run can’t be parked in that mode.

Fields

§mode: String

The mode.

§

PartlyGone

Machines of the run are gone, so it can’t be resumed whole.

Fields

§machines: Vec<String>

The machines gone.

§

SecretMissing

A secret the run needs has no value.

Fields

§name: String

Its name.

§

InputInvalid

A value the run was given can’t be used.

Fields

§name: String

Its name.

§reason: String

Why (masked: it may quote the value).

§

ToolFailed

A step’s tool ran and failed.

Fields

§reason: String

Its last error lines, or its exit status (masked).

§

ProjectInvalid

The folder isn’t a project to run.

Fields

§dir: PathBuf

The folder.

§

MachineUnknown

A machine the run doesn’t have.

Fields

§machine: String

The machine asked for.

§

NetworkUnknown

A network the run doesn’t have.

Fields

§network: String

The network asked for.

§

ProviderRefused

A Vagrant provider refused.

Fields

§provider: String

The provider.

§need: Option<ProviderNeed>

What this computer lacks for it, when that is what refused it.

§

ToolDenied

A tool refused this account.

Fields

§tool: String

The tool.

§

CredentialsExpired

A cloud refused the sign-in the run’s tools use.

Fields

§cloud: Option<Cloud>

The cloud, when the failure names its Terraform provider.

§reason: String

What the tool said (masked).

§

AddressPoolOverlap

A network the run makes needs an address block another network holds.

Fields

§reason: String

What the tool said (masked).

§

NoConsole

A machine has no graphical console to reach.

Fields

§machine: String

The machine.

§

ServerAuthFailed

The server the run is on refused its credentials.

Fields

§server: Option<String>

The server, when known.

§

Io

A file or folder couldn’t be read or written.

Fields

§path: PathBuf

The path.

§action: String

What was being done (read, create).

§

StateConflict

The run moved between a read and the write that would have moved it.

Fields

§expected: RunState

Where the write expected it.

§found: Option<RunState>

Where it was.

§

LeaseHeld

A live process holds the lease asked for.

Fields

§scope: String

What the lease covers.

§pid: u32

The holder’s process id.

Trait Implementations§

Source§

impl Clone for Detail

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Detail

Source§

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

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

impl<'de> Deserialize<'de> for Detail

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Detail

Source§

impl JsonSchema for Detail

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for Detail

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Detail

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Detail

Auto Trait Implementations§

§

impl Forget for Detail

§

impl Freeze for Detail

§

impl Move for Detail

§

impl RefUnwindSafe for Detail

§

impl Send for Detail

§

impl Sync for Detail

§

impl Unpin for Detail

§

impl UnsafeUnpin for Detail

§

impl UnwindSafe for Detail

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + 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: Sized + 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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