pub struct Header<T: FromPrimitive> { /* private fields */ }Implementations§
Source§impl Header<IndexSignatureTag>
impl Header<IndexSignatureTag>
pub fn builder() -> SignatureHeaderBuilder<Empty>
pub fn get_file_ima_signatures(&self) -> Result<&[String], RPMError>
pub fn get_file_ima_signature_length(&self) -> Result<i32, RPMError>
Source§impl Header<IndexTag>
impl Header<IndexTag>
pub fn get_payload_format(&self) -> Result<&str, RPMError>
pub fn get_payload_compressor(&self) -> Result<&str, RPMError>
pub fn get_file_checksums(&self) -> Result<&[String], RPMError>
pub fn get_name(&self) -> Result<&str, RPMError>
pub fn get_epoch(&self) -> Result<i32, RPMError>
pub fn get_version(&self) -> Result<&str, RPMError>
pub fn get_release(&self) -> Result<&str, RPMError>
pub fn get_arch(&self) -> Result<&str, RPMError>
pub fn get_install_time(&self) -> Result<i64, RPMError>
Sourcepub fn get_file_paths(&self) -> Result<Vec<PathBuf>, RPMError>
pub fn get_file_paths(&self) -> Result<Vec<PathBuf>, RPMError>
Extract a the set of contained file names.
Sourcepub fn get_file_digest_algorithm(&self) -> Result<FileDigestAlgorithm, RPMError>
pub fn get_file_digest_algorithm(&self) -> Result<FileDigestAlgorithm, RPMError>
The digest algorithm used per file.
Note that this is not necessarily the same as the digest used for headers.
Trait Implementations§
impl<T: FromPrimitive> StructuralPartialEq for Header<T>
Auto Trait Implementations§
impl<T> Freeze for Header<T>
impl<T> RefUnwindSafe for Header<T>where
T: RefUnwindSafe,
impl<T> Send for Header<T>where
T: Send,
impl<T> Sync for Header<T>where
T: Sync,
impl<T> Unpin for Header<T>where
T: Unpin,
impl<T> UnwindSafe for Header<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more