#[repr(u8)]pub enum StorageVariant {
Data = 0,
Cache = 1,
Tmp = 2,
CustomArtifacts = 3,
}
Variants§
Data = 0
The data
storage capability variant.
Cache = 1
The cache
storage capability variant.
Tmp = 2
The tmp
storage capability variant.
CustomArtifacts = 3
The custom_artifacts
storage capability variant.
NB: due to the fact that per-component isolated storage is
destroyed along with the component, the custom_artifacts
storage capability is actually proxied as a directory
capability to components created in a ManagedRealm
, in order
to ensure that artifacts are not destroyed when the realm is
torn down and can be extracted by the test framework. This
implies that a component that would like to use
custom_artifacts
must use it as a directory rather than a
storage capability.
The netemul sandbox routes a separate subdirectory of its
custom_artifacts
storage to each component that requests it to
ensure per-component isolation.
Implementations§
Source§impl StorageVariant
impl StorageVariant
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for StorageVariant
impl Clone for StorageVariant
Source§fn clone(&self) -> StorageVariant
fn clone(&self) -> StorageVariant
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StorageVariant
impl Debug for StorageVariant
Source§impl<D: ResourceDialect> Decode<StorageVariant, D> for StorageVariant
impl<D: ResourceDialect> Decode<StorageVariant, D> for StorageVariant
Source§impl<D: ResourceDialect> Encode<StorageVariant, D> for StorageVariant
impl<D: ResourceDialect> Encode<StorageVariant, D> for StorageVariant
Source§impl Hash for StorageVariant
impl Hash for StorageVariant
Source§impl Ord for StorageVariant
impl Ord for StorageVariant
Source§fn cmp(&self, other: &StorageVariant) -> Ordering
fn cmp(&self, other: &StorageVariant) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StorageVariant
impl PartialEq for StorageVariant
Source§impl PartialOrd for StorageVariant
impl PartialOrd for StorageVariant
Source§impl TypeMarker for StorageVariant
impl TypeMarker for StorageVariant
Source§type Owned = StorageVariant
type Owned = StorageVariant
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for StorageVariant
impl ValueTypeMarker for StorageVariant
Source§type Borrowed<'a> = StorageVariant
type Borrowed<'a> = StorageVariant
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for StorageVariant
impl Eq for StorageVariant
impl StructuralPartialEq for StorageVariant
Auto Trait Implementations§
impl Freeze for StorageVariant
impl RefUnwindSafe for StorageVariant
impl Send for StorageVariant
impl Sync for StorageVariant
impl Unpin for StorageVariant
impl UnwindSafe for StorageVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)