pub enum NativePackageRegistry {
Missing,
Valid(Vec<InstalledNativePackage>),
}Expand description
The on-disk state of the Rust-native extension registry.
A malformed or unreadable registry is returned as an error, rather than being conflated with a missing file. Mutation paths use this distinction to avoid replacing damaged metadata with a newly generated registry.
Variants§
Missing
No registry has been created yet.
Valid(Vec<InstalledNativePackage>)
A registry was present and passed JSON/schema validation.
Trait Implementations§
Source§impl Clone for NativePackageRegistry
impl Clone for NativePackageRegistry
Source§fn clone(&self) -> NativePackageRegistry
fn clone(&self) -> NativePackageRegistry
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 moreSource§impl Debug for NativePackageRegistry
impl Debug for NativePackageRegistry
impl Eq for NativePackageRegistry
Source§impl PartialEq for NativePackageRegistry
impl PartialEq for NativePackageRegistry
impl StructuralPartialEq for NativePackageRegistry
Auto Trait Implementations§
impl Freeze for NativePackageRegistry
impl RefUnwindSafe for NativePackageRegistry
impl Send for NativePackageRegistry
impl Sync for NativePackageRegistry
impl Unpin for NativePackageRegistry
impl UnsafeUnpin for NativePackageRegistry
impl UnwindSafe for NativePackageRegistry
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.