pub struct StorageSubdir(pub RelativePath);Expand description
The subdirectory inside of the storage backing directory’s subdirectory to use, if any. The difference between this and SubDir is that a) the SubDir generically refers to the subdirectory of a directory capability, and b) the SubDir is appended to the IsolatedStoragePath first (which is a path into a backing directory), and component_manager will create the StorageSubdir if it doesn’t exist but won’t create SubDir. Accordingly, the complete path to a storage capability within the backing directory is {IsolatedStoragePath}/{SubDir}/{StorageSubdir}.
Tuple Fields§
§0: RelativePathTrait Implementations§
Source§impl Metadata<StorageSubdir> for Dict
impl Metadata<StorageSubdir> for Dict
Source§const KEY: &'static str = "storage_subdir"
const KEY: &'static str = "storage_subdir"
A key string used for setting and getting the metadata.
Source§fn set_metadata(&self, value: StorageSubdir)
fn set_metadata(&self, value: StorageSubdir)
Infallibly assigns
value to self.Source§fn get_metadata(&self) -> Option<StorageSubdir>
fn get_metadata(&self) -> Option<StorageSubdir>
Retrieves the subdir metadata from
self, if present.Auto Trait Implementations§
impl Freeze for StorageSubdir
impl RefUnwindSafe for StorageSubdir
impl Send for StorageSubdir
impl Sync for StorageSubdir
impl Unpin for StorageSubdir
impl UnwindSafe for StorageSubdir
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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