pub enum RemoteOriginal<P = Vec<u8>> {
Opened {
facts: Box<RemoteAssetFacts>,
plaintext: P,
},
Refused(SyncApplyOutcome),
Undecryptable {
facts: Box<RemoteAssetFacts>,
},
DigestMismatch {
facts: Box<RemoteAssetFacts>,
},
}Expand description
How Workspace::open_remote_original (P = Vec<u8>) or
Workspace::open_remote_original_from (P = the caller’s writer) resolved.
Variants§
Opened
Verified end to end and decrypted; when the head carries a sidecar, the plaintext hashes to its signed digest.
Fields
facts: Box<RemoteAssetFacts>The verified facts of the entry.
plaintext: PThe original’s bytes, or the writer they were streamed into.
Refused(SyncApplyOutcome)
The entry did not apply (held pending or quarantined), or the ciphertext streamed to
Workspace::open_remote_original_from is not the one its head named
([RejectReason::CiphertextHashMismatch]). Nothing decrypted is to be kept.
Undecryptable
The entry applied, but its file key could not be recovered or its ciphertext failed authentication under it.
Fields
facts: Box<RemoteAssetFacts>The verified facts of the entry.
DigestMismatch
The ciphertext opened, but the plaintext does not hash to the signed sidecar’s digest.
Fields
facts: Box<RemoteAssetFacts>The verified facts of the entry.
Trait Implementations§
Source§impl<P: Clone> Clone for RemoteOriginal<P>
impl<P: Clone> Clone for RemoteOriginal<P>
Source§fn clone(&self) -> RemoteOriginal<P>
fn clone(&self) -> RemoteOriginal<P>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<P: Debug> Debug for RemoteOriginal<P>
impl<P: Debug> Debug for RemoteOriginal<P>
Source§impl<P: PartialEq> PartialEq for RemoteOriginal<P>
impl<P: PartialEq> PartialEq for RemoteOriginal<P>
Source§fn eq(&self, other: &RemoteOriginal<P>) -> bool
fn eq(&self, other: &RemoteOriginal<P>) -> bool
self and other values to be equal, and is used by ==.impl<P> StructuralPartialEq for RemoteOriginal<P>
Auto Trait Implementations§
impl<P> Freeze for RemoteOriginal<P>where
P: Freeze,
impl<P> RefUnwindSafe for RemoteOriginal<P>where
P: RefUnwindSafe,
impl<P> Send for RemoteOriginal<P>where
P: Send,
impl<P> Sync for RemoteOriginal<P>where
P: Sync,
impl<P> Unpin for RemoteOriginal<P>where
P: Unpin,
impl<P> UnsafeUnpin for RemoteOriginal<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for RemoteOriginal<P>where
P: UnwindSafe,
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> 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