struct RawBackupEntry {
pub path: RelativeFilePath,
pub md5: Option<Md5Checksum>,
}Expand description
A path that should be tracked for backup together with its checksum.
Fields§
§path: RelativeFilePathThe path to the file that is backed up.
md5: Option<Md5Checksum>The optional MD5 checksum of the backed up file as stored in the package.
Trait Implementations§
Source§impl AlpmParser for RawBackupEntry
impl AlpmParser for RawBackupEntry
Source§fn parser<'a>(input: &mut Input<'a>) -> PResult<'a, Self>
fn parser<'a>(input: &mut Input<'a>) -> PResult<'a, Self>
Recognizes a single backup entry.
Each entry consists of a relative path, a tab, and a 32 character hexadecimal MD5 digest.
§Note
As a special edge case, the parser does not fail if it encounters the keyword (null)
instead of an MD-5 hash digest. The (null) keyword may be present in alpm-db-files
files, due to how pacman handles package metadata with invalid backup entries.
Specifically, if a package is created from a PKGBUILD that tracks files in its backup
array, which are not in the package, then pacman creates an invalid %BACKUP% entry upon
installation of the package, instead of skipping the invalid entries.
Source§fn delimiter_error_context<'a, O, P>(
parser: P,
) -> impl Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>where
P: Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>,
fn delimiter_error_context<'a, O, P>(
parser: P,
) -> impl Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>where
P: Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>,
Source§impl Clone for RawBackupEntry
impl Clone for RawBackupEntry
Source§fn clone(&self) -> RawBackupEntry
fn clone(&self) -> RawBackupEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RawBackupEntry
impl Debug for RawBackupEntry
impl Eq for RawBackupEntry
Source§impl PartialEq for RawBackupEntry
impl PartialEq for RawBackupEntry
Source§impl Serialize for RawBackupEntry
impl Serialize for RawBackupEntry
impl StructuralPartialEq for RawBackupEntry
Auto Trait Implementations§
impl Freeze for RawBackupEntry
impl RefUnwindSafe for RawBackupEntry
impl Send for RawBackupEntry
impl Sync for RawBackupEntry
impl Unpin for RawBackupEntry
impl UnsafeUnpin for RawBackupEntry
impl UnwindSafe for RawBackupEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U> ParserUntil for Uwhere
U: AlpmParser,
impl<U> ParserUntil for Uwhere
U: AlpmParser,
Source§fn parser_until<'a, P>(
delimiter: P,
) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
fn parser_until<'a, P>( delimiter: P, ) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
Returns a [Parser] that parses Self until the given delimiter parser
matches.
Source§fn parser_until_eof<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_eof<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Source§fn parser_until_line_ending<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_line_ending<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Source§impl<U> ParserUntilInclusive for Uwhere
U: ParserUntil,
impl<U> ParserUntilInclusive for Uwhere
U: ParserUntil,
Source§fn parser_until_inclusive<'a, P>(
delimiter: P,
) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
fn parser_until_inclusive<'a, P>( delimiter: P, ) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
Returns a [Parser] that parses the whole input and consumes the given delimiter parser.
Delegates to ParserUntil::parser_until and consumes the delimiter.
Source§fn parser_until_line_ending_inclusive<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_line_ending_inclusive<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Parser] that parses until the end of line and fully consumes it. Read more