#[repr(u32)]pub enum StorageId {
StaticInstanceId = 1,
StaticInstanceIdOrMoniker = 2,
}
Expand description
Declares which identifier to use to key a component’s isolated storage directory.
Variants§
Trait Implementations§
Source§impl Encodable for StorageId
impl Encodable for StorageId
Source§type Encoded = WireStorageId
type Encoded = WireStorageId
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<StorageId> for WireStorageId
impl From<StorageId> for WireStorageId
Source§impl From<WireStorageId> for StorageId
impl From<WireStorageId> for StorageId
Source§fn from(wire: WireStorageId) -> Self
fn from(wire: WireStorageId) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireStorageId> for StorageId
impl TakeFrom<WireStorageId> for StorageId
Source§fn take_from(from: &WireStorageId) -> Self
fn take_from(from: &WireStorageId) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for StorageId
impl Eq for StorageId
impl StructuralPartialEq for StorageId
Auto Trait Implementations§
impl Freeze for StorageId
impl RefUnwindSafe for StorageId
impl Send for StorageId
impl Sync for StorageId
impl Unpin for StorageId
impl UnwindSafe for StorageId
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