pub enum DbSchema {
V9(SchemaVersion),
}Expand description
Describes supported schema versions of the ALPM databases.
Variants§
V9(SchemaVersion)
Schema version 9 as introduced with pacman 4.2.0 on 2014-12-19.
Implementations§
Trait Implementations§
Source§impl AsRef<SchemaVersion> for DbSchema
impl AsRef<SchemaVersion> for DbSchema
Source§fn as_ref(&self) -> &SchemaVersion
fn as_ref(&self) -> &SchemaVersion
Converts this type into a shared reference of the (usually inferred) input type.
impl Eq for DbSchema
Source§impl FileFormatSchema for DbSchema
impl FileFormatSchema for DbSchema
Source§fn derive_from_file(file: impl AsRef<Path>) -> Result<Self, Self::Err>where
Self: Sized,
fn derive_from_file(file: impl AsRef<Path>) -> Result<Self, Self::Err>where
Self: Sized,
Derives a DbSchema from a version file.
Opens the file and defers to DbSchema::derive_from_reader.
§Errors
Returns an error if:
- the file cannot be opened for reading,
- or deriving a
DbSchemafrom its contents fails.
Source§fn derive_from_reader(reader: impl Read) -> Result<Self, Self::Err>where
Self: Sized,
fn derive_from_reader(reader: impl Read) -> Result<Self, Self::Err>where
Self: Sized,
Derives a DbSchema from a reader.
Reads the reader to a string and defers to DbSchema::derive_from_str.
§Errors
Returns an error if:
- reading from
readerfails, - or deriving a
DbSchemafrom its contents fails.
impl StructuralPartialEq for DbSchema
Source§impl TryFrom<SchemaVersion> for DbSchema
impl TryFrom<SchemaVersion> for DbSchema
Auto Trait Implementations§
impl Freeze for DbSchema
impl RefUnwindSafe for DbSchema
impl Send for DbSchema
impl Sync for DbSchema
impl Unpin for DbSchema
impl UnsafeUnpin for DbSchema
impl UnwindSafe for DbSchema
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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