Struct sbat::RevocationSbatVec
source · pub struct RevocationSbatVec<'a> { /* private fields */ }Expand description
SBAT revocation data.
This contains SBAT revocation data parsed from a UEFI variable such
as SbatLevel.
See the crate documentation for a usage example.
Implementations§
source§impl<'a> RevocationSbatVec<'a>
impl<'a> RevocationSbatVec<'a>
Trait Implementations§
source§impl<'a> Clone for RevocationSbatVec<'a>
impl<'a> Clone for RevocationSbatVec<'a>
source§fn clone(&self) -> RevocationSbatVec<'a>
fn clone(&self) -> RevocationSbatVec<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for RevocationSbatVec<'a>
impl<'a> Debug for RevocationSbatVec<'a>
source§impl<'a> Default for RevocationSbatVec<'a>
impl<'a> Default for RevocationSbatVec<'a>
source§fn default() -> RevocationSbatVec<'a>
fn default() -> RevocationSbatVec<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq<RevocationSbatVec<'a>> for RevocationSbatVec<'a>
impl<'a> PartialEq<RevocationSbatVec<'a>> for RevocationSbatVec<'a>
source§fn eq(&self, other: &RevocationSbatVec<'a>) -> bool
fn eq(&self, other: &RevocationSbatVec<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> RevocationSbat<'a> for RevocationSbatVec<'a>
impl<'a> RevocationSbat<'a> for RevocationSbatVec<'a>
source§fn date(&self) -> Option<&AsciiStr>
fn date(&self) -> Option<&AsciiStr>
Date when the data was last updated. This is optional metadata
in the first entry and may not be present.
source§fn set_date(&mut self, date: Option<&'a AsciiStr>)
fn set_date(&mut self, date: Option<&'a AsciiStr>)
Set the date when the data was last updated.
source§fn revoked_components(&self) -> &[Component<'a>]
fn revoked_components(&self) -> &[Component<'a>]
Get the revoked components as a slice. The component version
indicates the lowest allowed version of this component; all
lower versions are considered revoked.
source§fn try_push(&mut self, component: Component<'a>) -> Result<(), PushError>
fn try_push(&mut self, component: Component<'a>) -> Result<(), PushError>
Add a revoked component.
source§fn validate_image<I: ImageSbat<'a>>(
&self,
image_sbat: &I
) -> ValidationResult<'a>
fn validate_image<I: ImageSbat<'a>>( &self, image_sbat: &I ) -> ValidationResult<'a>
Check if any component in
image_sbat is revoked. Read moreimpl<'a> Eq for RevocationSbatVec<'a>
impl<'a> StructuralEq for RevocationSbatVec<'a>
impl<'a> StructuralPartialEq for RevocationSbatVec<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RevocationSbatVec<'a>
impl<'a> Send for RevocationSbatVec<'a>
impl<'a> Sync for RevocationSbatVec<'a>
impl<'a> Unpin for RevocationSbatVec<'a>
impl<'a> UnwindSafe for RevocationSbatVec<'a>
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