Skip to main content

SnapshotSessionClientError

Enum SnapshotSessionClientError 

Source
pub enum SnapshotSessionClientError {
Show 25 variants DataPlane(WorkerDataPlaneFrameError), InvalidBuildStart, InvalidSourceDescriptor, SourceDescriptorMismatch, SourceArchiveMismatch, SourceFileChanged, InvalidControlFrame, UnexpectedServerFrame { expected: &'static str, received: WorkerDataPlaneFrameKind, }, JobIdentityMismatch, EventIdentityMismatch, EventSequenceMismatch, MissingProgressEvent, ArtifactIdentityMismatch, CompileEvidenceMismatch, ArtifactPayloadMismatch, ArtifactVerificationFailed, ArtifactPublicationFailed, ArtifactCommitNotAuthorized, ArtifactCleanupFailed, CompletionIdentityMismatch, Server(Box<SnapshotSessionError>), ArtifactSpoolPathInvalid, ArtifactSpoolExists, ArtifactSpoolInvalid, LocalIo,
}
Expand description

Stable fail-closed snapshot-session client failure.

Variants§

§

DataPlane(WorkerDataPlaneFrameError)

Binary framing, sequence, size, or stream I/O failed.

§

InvalidBuildStart

Build-start fields or their deterministic encoding are invalid.

§

InvalidSourceDescriptor

Source descriptor JSON or reconstructed request is invalid.

§

SourceDescriptorMismatch

Descriptor bytes do not match the size and digest declared by the start.

§

SourceArchiveMismatch

Archive bytes do not match the descriptor and build-start declaration.

§

SourceFileChanged

A validated source handle changed while its bytes were streamed.

§

InvalidControlFrame

A bounded control payload was not strict valid JSON for its frame kind.

§

UnexpectedServerFrame

A server frame appeared outside the only accepted session state.

Fields

§expected: &'static str

Required frame or terminal alternatives.

§received: WorkerDataPlaneFrameKind

Received typed frame.

§

JobIdentityMismatch

Job acknowledgement identity does not match the reconstructed request.

§

EventIdentityMismatch

Event identity does not match the acknowledged job.

§

EventSequenceMismatch

Event sequence did not start at zero and increase by exactly one.

§

MissingProgressEvent

No validated progress event preceded artifact verification and receipt.

§

ArtifactIdentityMismatch

Artifact descriptor identity does not match the acknowledged job.

§

CompileEvidenceMismatch

Compile evidence is not bound to the reconstructed request and source.

§

ArtifactPayloadMismatch

Streamed artifact bytes do not match their descriptor.

§

ArtifactVerificationFailed

The caller’s independent artifact verifier rejected bytes or final path.

§

ArtifactPublicationFailed

Final artifact path was absent, replaced, unrelated, changed, or not durable.

§

ArtifactCommitNotAuthorized

Publication cannot be committed before protocol and process success.

§

ArtifactCleanupFailed

Identity-bound removal of an uncommitted artifact failed.

§

CompletionIdentityMismatch

Completion identity or cleanup proof does not match the acknowledged job.

§

Server(Box<SnapshotSessionError>)

The worker returned a validated public session error.

§

ArtifactSpoolPathInvalid

Artifact spool path must be absolute UTF-8 without control bytes.

§

ArtifactSpoolExists

Create-only artifact spool destination already exists.

§

ArtifactSpoolInvalid

Artifact spool is not one empty, private, create-only regular file.

§

LocalIo

A local file operation failed without exposing path or contents.

Trait Implementations§

Source§

impl Clone for SnapshotSessionClientError

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 SnapshotSessionClientError

Source§

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

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

impl Display for SnapshotSessionClientError

Source§

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

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

impl Eq for SnapshotSessionClientError

Source§

impl Error for SnapshotSessionClientError

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

impl From<SnapshotSessionClientError> for SshSnapshotSessionError

Source§

fn from(source: SnapshotSessionClientError) -> Self

Converts to this type from the input type.
Source§

impl From<WorkerDataPlaneFrameError> for SnapshotSessionClientError

Source§

fn from(source: WorkerDataPlaneFrameError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SnapshotSessionClientError

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 StructuralPartialEq for SnapshotSessionClientError

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> 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> 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, 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> 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> 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 = !

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.