pub enum RemoteBuildError {
Show 16 variants
IncompatibleProtocolVersion {
supported: ProtocolVersion,
received: ProtocolVersion,
},
TruncatedEvent,
MalformedEvent {
message: String,
},
InvalidUtf8,
EventTooLarge {
bytes: usize,
maximum: usize,
},
InvalidIdentifier {
field: &'static str,
reason: &'static str,
},
UnsafeEventText {
field: &'static str,
},
InvalidEventPayload {
event: &'static str,
reason: &'static str,
},
InvalidSourceManifest {
message: String,
},
InvalidJobTransition {
from: JobState,
to: JobState,
},
Cancelled,
UnsupportedCapability {
provider: String,
feature: ProviderFeature,
},
ProviderFailure {
provider: String,
code: String,
message: String,
retryable: bool,
},
ArtifactNotFound {
job_id: String,
artifact_id: String,
},
IntegrityMismatch {
artifact_id: String,
expected: String,
actual: String,
},
Serialization {
message: String,
},
}Expand description
Typed failures crossing the remote-build boundary.
Variants§
IncompatibleProtocolVersion
The peer uses an incompatible protocol major version.
Fields
supported: ProtocolVersionHighest protocol version understood by this implementation.
received: ProtocolVersionVersion sent by the peer.
TruncatedEvent
A stream ended before one complete JSON event was available.
MalformedEvent
A remote event was not valid JSON or did not match the protocol envelope.
InvalidUtf8
Event bytes were not UTF-8.
EventTooLarge
One event exceeded the protocol decoder limit.
InvalidIdentifier
A stable identifier was empty, too long, or contained control characters.
UnsafeEventText
Event text contained terminal control sequences.
InvalidEventPayload
A typed event carried inconsistent or impossible values.
InvalidSourceManifest
The required source manifest was malformed or non-canonical.
InvalidJobTransition
A provider reported an impossible job-state change.
Cancelled
The caller requested cancellation.
UnsupportedCapability
The selected provider cannot satisfy a required feature.
ProviderFailure
A provider failed with a stable provider-specific code.
Fields
ArtifactNotFound
A requested artifact is absent from the job manifest.
IntegrityMismatch
Downloaded bytes do not match the signed manifest digest.
Fields
Serialization
A local protocol object could not be serialized.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteBuildError
impl Clone for RemoteBuildError
Source§impl Debug for RemoteBuildError
impl Debug for RemoteBuildError
Source§impl Display for RemoteBuildError
impl Display for RemoteBuildError
impl Eq for RemoteBuildError
Source§impl Error for RemoteBuildError
impl Error for RemoteBuildError
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()
Source§impl PartialEq for RemoteBuildError
impl PartialEq for RemoteBuildError
impl StructuralPartialEq for RemoteBuildError
Auto Trait Implementations§
impl Freeze for RemoteBuildError
impl RefUnwindSafe for RemoteBuildError
impl Send for RemoteBuildError
impl Sync for RemoteBuildError
impl Unpin for RemoteBuildError
impl UnsafeUnpin for RemoteBuildError
impl UnwindSafe for RemoteBuildError
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.