pub struct RemoteHead<'a> {
pub album_id: Uuid,
pub manifest_cbor: &'a [u8],
pub metadata_blob: &'a [u8],
pub original_ciphertext_hash: Hash32,
pub local_chain_head: Option<Hash32>,
}Expand description
A RemoteEntry whose original ciphertext is named by its SHA-256 rather than carried: what
a caller holds when the original is too large to keep in memory — a restore that streams it
to disk, say.
original_ciphertext_hash stands in for the bytes at the
chokepoint’s content-integrity step, so on its own it is a claim. Applying a head therefore
vouches for the ciphertext only once something has hashed the bytes and found this digest:
Workspace::open_remote_original_from does, over exactly the bytes it decrypts.
Fields§
§album_id: Uuid§manifest_cbor: &'a [u8]§metadata_blob: &'a [u8]§original_ciphertext_hash: Hash32The SHA-256 of the asset’s original ciphertext: the content address the chokepoint checks
against the manifest’s ciphertext_hash.
local_chain_head: Option<Hash32>Trait Implementations§
Source§impl<'a> Clone for RemoteHead<'a>
impl<'a> Clone for RemoteHead<'a>
Source§fn clone(&self) -> RemoteHead<'a>
fn clone(&self) -> RemoteHead<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RemoteHead<'a>
Auto Trait Implementations§
impl<'a> Freeze for RemoteHead<'a>
impl<'a> RefUnwindSafe for RemoteHead<'a>
impl<'a> Send for RemoteHead<'a>
impl<'a> Sync for RemoteHead<'a>
impl<'a> Unpin for RemoteHead<'a>
impl<'a> UnsafeUnpin for RemoteHead<'a>
impl<'a> UnwindSafe for RemoteHead<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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