pub enum PushError {
Album(AlbumError),
Upload(UploadError),
CreateRefused {
asset_id: String,
amk_version: u32,
source: Box<UploadError>,
},
UnknownBlob {
asset_id: String,
hash: String,
},
Verify(VerifyError),
NotDurable {
asset_id: String,
not_durable: Vec<String>,
},
ReceiptMissing {
asset_id: String,
hash: String,
},
ReceiptRejected {
asset_id: String,
hash: String,
rejection: ReceiptRejection,
},
}Expand description
Errors a push can fail with.
Variants§
Album(AlbumError)
The bundle’s album could not be provisioned on the server, so nothing may be uploaded into it (invariant 6 would refuse every session).
Upload(UploadError)
A blob’s transfer failed non-recoverably.
CreateRefused
The server refused a create’s provenance blob at finalization
(error.upload.envelope_rejected), so the asset was not published (issue #822).
The provenance blob is the first rung of the ladder and the one that publishes the
manifest, so a refusal of it means nothing of the asset reached the row. The one cause a
client can act on is invariant 18: the album’s epoch moved past the one the create is
sealed under. The wire answer is generic, so the caller decides — by checking whether it
holds a newer epoch — whether a re-seal at the album’s current epoch
(Workspace::reseal_create) is the fix.
Fields
source: Box<UploadError>The server’s refusal, boxed to keep PushError small.
UnknownBlob
The scheduler planned a blob the bundle does not contain — an internal inconsistency
between staged_asset and bundle_blobs, surfaced rather than panicked on.
Fields
Verify(VerifyError)
The storage-verification or custody-receipt surface could not answer, so custody is unconfirmed — never assumed.
NotDurable
The server’s verdict says it does not durably hold every blob the asset relies on.
Fields
ReceiptMissing
The asset’s receipt log holds no receipt for a blob the asset relies on.
ReceiptRejected
Every receipt the log holds for a blob was refused: a signature no published attestation key verifies, or a field that disagrees with what the client sent.
Implementations§
Trait Implementations§
Source§impl Error for PushError
impl Error for PushError
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<AlbumError> for PushError
impl From<AlbumError> for PushError
Source§fn from(source: AlbumError) -> Self
fn from(source: AlbumError) -> Self
Source§impl From<UploadError> for PushError
impl From<UploadError> for PushError
Source§fn from(source: UploadError) -> Self
fn from(source: UploadError) -> Self
Source§impl From<VerifyError> for PushError
impl From<VerifyError> for PushError
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for PushError
impl !UnwindSafe for PushError
impl Freeze for PushError
impl Send for PushError
impl Sync for PushError
impl Unpin for PushError
impl UnsafeUnpin for PushError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more