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
received: WorkerDataPlaneFrameKindReceived 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
impl Clone for SnapshotSessionClientError
Source§impl Debug for SnapshotSessionClientError
impl Debug for SnapshotSessionClientError
Source§impl Display for SnapshotSessionClientError
impl Display for SnapshotSessionClientError
impl Eq for SnapshotSessionClientError
Source§impl Error for SnapshotSessionClientError
impl Error for SnapshotSessionClientError
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()
Source§impl From<SnapshotSessionClientError> for SshSnapshotSessionError
impl From<SnapshotSessionClientError> for SshSnapshotSessionError
Source§fn from(source: SnapshotSessionClientError) -> Self
fn from(source: SnapshotSessionClientError) -> Self
Source§impl From<WorkerDataPlaneFrameError> for SnapshotSessionClientError
impl From<WorkerDataPlaneFrameError> for SnapshotSessionClientError
Source§fn from(source: WorkerDataPlaneFrameError) -> Self
fn from(source: WorkerDataPlaneFrameError) -> Self
impl StructuralPartialEq for SnapshotSessionClientError
Auto Trait Implementations§
impl Freeze for SnapshotSessionClientError
impl RefUnwindSafe for SnapshotSessionClientError
impl Send for SnapshotSessionClientError
impl Sync for SnapshotSessionClientError
impl Unpin for SnapshotSessionClientError
impl UnsafeUnpin for SnapshotSessionClientError
impl UnwindSafe for SnapshotSessionClientError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.