pub enum FfiLifecycleOpOutcome {
Applied {
asset_id: String,
action: String,
sync_seq: u64,
replayed: bool,
},
NotIndexed,
RestoreTooLate {
retention_until: String,
},
Failed {
kind: String,
code: Option<String>,
permanent: bool,
chain_head: Option<String>,
retention_until: Option<String>,
detail: String,
},
}Expand description
What became of one lifecycle op.
Variants§
Applied
The server applied the op, or had applied it already (replayed).
Fields
NotIndexed
Nothing was sent: the feed does not list the asset, so its create is not indexed on the
server, and the server never sees a delete for an asset it has not indexed. The record
stays on the asset’s chain; deliver it once a sync lists the asset.
RestoreTooLate
Nothing was sent: a trash-restore in the stretch undoes a delete the server has not
seen, and that delete’s window closed at retention_until. Sent, the server would apply
the delete, refuse the restore and purge an asset the user restored in time. Withheld
for good: the server keeps the asset live at the head it holds, the workspace keeps
every record, and nothing after the pair can be sent either, since the chain is
hash-linked. A later delivery judges it the same way, so it never needs retrying.
Failed
The server refused the op, or could not be reached. permanent says whether sending
the same bytes again can only be refused again.
Fields
kind: StringA stable name for why, as the CLI’s --json reports it: retention_elapsed,
stale_revival, refused, forbidden, upgrade_required, unavailable or
malformed.
permanent: boolWhether a resend can only be refused again: the server judged the op itself (a stale chain, a closed retention window, a malformed op). Never retry a permanent failure.
Trait Implementations§
Source§impl Clone for FfiLifecycleOpOutcome
impl Clone for FfiLifecycleOpOutcome
Source§fn clone(&self) -> FfiLifecycleOpOutcome
fn clone(&self) -> FfiLifecycleOpOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for FfiLifecycleOpOutcome
impl<UT> ConvertError<UT> for FfiLifecycleOpOutcome
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiLifecycleOpOutcome
impl Debug for FfiLifecycleOpOutcome
impl Eq for FfiLifecycleOpOutcome
Source§impl<UT> FfiConverter<UT> for FfiLifecycleOpOutcome
impl<UT> FfiConverter<UT> for FfiLifecycleOpOutcome
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for FfiLifecycleOpOutcome
impl<UT> Lift<UT> for FfiLifecycleOpOutcome
Source§impl<UT> LiftRef<UT> for FfiLifecycleOpOutcome
impl<UT> LiftRef<UT> for FfiLifecycleOpOutcome
Source§impl<UT> LiftReturn<UT> for FfiLifecycleOpOutcome
impl<UT> LiftReturn<UT> for FfiLifecycleOpOutcome
Source§type ReturnType = <FfiLifecycleOpOutcome as Lift<UT>>::FfiType
type ReturnType = <FfiLifecycleOpOutcome as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for FfiLifecycleOpOutcome
impl<UT> Lower<UT> for FfiLifecycleOpOutcome
Source§impl<UT> LowerError<UT> for FfiLifecycleOpOutcome
impl<UT> LowerError<UT> for FfiLifecycleOpOutcome
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiLifecycleOpOutcome
impl<UT> LowerReturn<UT> for FfiLifecycleOpOutcome
Source§type ReturnType = <FfiLifecycleOpOutcome as Lower<UT>>::FfiType
type ReturnType = <FfiLifecycleOpOutcome as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for FfiLifecycleOpOutcome
impl PartialEq for FfiLifecycleOpOutcome
Source§fn eq(&self, other: &FfiLifecycleOpOutcome) -> bool
fn eq(&self, other: &FfiLifecycleOpOutcome) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FfiLifecycleOpOutcome
Source§impl<UT> TypeId<UT> for FfiLifecycleOpOutcome
impl<UT> TypeId<UT> for FfiLifecycleOpOutcome
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiLifecycleOpOutcome
impl RefUnwindSafe for FfiLifecycleOpOutcome
impl Send for FfiLifecycleOpOutcome
impl Sync for FfiLifecycleOpOutcome
impl Unpin for FfiLifecycleOpOutcome
impl UnsafeUnpin for FfiLifecycleOpOutcome
impl UnwindSafe for FfiLifecycleOpOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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