pub enum FfiOpenedOriginal {
Opened {
facts: FfiAssetFacts,
},
Refused {
outcome: FfiSyncApplyOutcome,
},
Undecryptable {
facts: FfiAssetFacts,
},
DigestMismatch {
facts: FfiAssetFacts,
},
}Expand description
How FfiWorkspace::open_synced_original resolved. Only Opened leaves anything at the
destination path.
Variants§
Opened
Verified end to end and decrypted: the destination now holds the original’s plaintext, which hashes to the signed sidecar’s digest.
Fields
facts: FfiAssetFactsThe verified facts of the entry.
Refused
The entry did not apply, exactly as
apply_sync_entry would say: held pending or
quarantined. A ciphertext file that is not the original the manifest commits to is
quarantined as Rejected.CiphertextHashMismatch.
Fields
outcome: FfiSyncApplyOutcomeThe verdict, never Applied.
Undecryptable
The entry applied, but its file key could not be recovered or its ciphertext failed authentication under it.
Fields
facts: FfiAssetFactsThe verified facts of the entry.
DigestMismatch
The ciphertext opened, but the plaintext does not hash to the signed sidecar’s digest.
Fields
facts: FfiAssetFactsThe verified facts of the entry.
Trait Implementations§
Source§impl Clone for FfiOpenedOriginal
impl Clone for FfiOpenedOriginal
Source§fn clone(&self) -> FfiOpenedOriginal
fn clone(&self) -> FfiOpenedOriginal
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 FfiOpenedOriginal
impl<UT> ConvertError<UT> for FfiOpenedOriginal
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiOpenedOriginal
impl Debug for FfiOpenedOriginal
Source§impl<UT> FfiConverter<UT> for FfiOpenedOriginal
impl<UT> FfiConverter<UT> for FfiOpenedOriginal
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<W> From<RemoteOriginal<W>> for FfiOpenedOriginal
impl<W> From<RemoteOriginal<W>> for FfiOpenedOriginal
Source§fn from(original: RemoteOriginal<W>) -> Self
fn from(original: RemoteOriginal<W>) -> Self
Source§impl<UT> Lift<UT> for FfiOpenedOriginal
impl<UT> Lift<UT> for FfiOpenedOriginal
Source§impl<UT> LiftRef<UT> for FfiOpenedOriginal
impl<UT> LiftRef<UT> for FfiOpenedOriginal
type LiftType = FfiOpenedOriginal
Source§impl<UT> LiftReturn<UT> for FfiOpenedOriginal
impl<UT> LiftReturn<UT> for FfiOpenedOriginal
Source§type ReturnType = <FfiOpenedOriginal as Lift<UT>>::FfiType
type ReturnType = <FfiOpenedOriginal 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 FfiOpenedOriginal
impl<UT> Lower<UT> for FfiOpenedOriginal
Source§impl<UT> LowerError<UT> for FfiOpenedOriginal
impl<UT> LowerError<UT> for FfiOpenedOriginal
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiOpenedOriginal
impl<UT> LowerReturn<UT> for FfiOpenedOriginal
Source§type ReturnType = <FfiOpenedOriginal as Lower<UT>>::FfiType
type ReturnType = <FfiOpenedOriginal 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<UT> TypeId<UT> for FfiOpenedOriginal
impl<UT> TypeId<UT> for FfiOpenedOriginal
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiOpenedOriginal
impl RefUnwindSafe for FfiOpenedOriginal
impl Send for FfiOpenedOriginal
impl Sync for FfiOpenedOriginal
impl Unpin for FfiOpenedOriginal
impl UnsafeUnpin for FfiOpenedOriginal
impl UnwindSafe for FfiOpenedOriginal
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<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