pub enum BlobPathScheme {
Hashed,
Plain,
}Expand description
How a cloud home names its blob objects. Paired with the at-rest
CloudCipher by the home’s HomeStorage: an
opaque home is Hashed + encrypted, a browsable home is Plain + plaintext.
Variants§
Hashed
Content-addressed shard {namespace}/{ab}/{cd}/{id} (an opaque home).
Plain
The consumer’s own readable path, verbatim: {namespace}/{cloud_path}
(a browsable home). The consumer must supply cloud_path on every blob;
coven errors otherwise.
Implementations§
Source§impl BlobPathScheme
impl BlobPathScheme
Sourcepub fn for_storage(storage: HomeStorage) -> Self
pub fn for_storage(storage: HomeStorage) -> Self
The blob-path scheme a home’s storage mode selects: an opaque home
obfuscates (Hashed), a browsable home is readable (Plain).
Trait Implementations§
Source§impl Clone for BlobPathScheme
impl Clone for BlobPathScheme
Source§fn clone(&self) -> BlobPathScheme
fn clone(&self) -> BlobPathScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlobPathScheme
Auto Trait Implementations§
impl Freeze for BlobPathScheme
impl RefUnwindSafe for BlobPathScheme
impl Send for BlobPathScheme
impl Sync for BlobPathScheme
impl Unpin for BlobPathScheme
impl UnsafeUnpin for BlobPathScheme
impl UnwindSafe for BlobPathScheme
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
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 moreCreates a shared type from an unshared type.