pub struct Revocations(/* private fields */);Expand description
Certificate fingerprints refused even when pinned or allowed (docs/design/VOLUME-TRUST.md
§6.3). One fingerprint per line; # starts a comment, blank lines are ignored, colons and
letter case are tolerated. Read once; there is no propagation and no expiry.
Implementations§
Source§impl Revocations
impl Revocations
Sourcepub fn load(path: &Path) -> Result<Revocations>
pub fn load(path: &Path) -> Result<Revocations>
Read and parse a revocation file (at most MAX_REVOCATION_FILE bytes).
Sourcepub fn parse(text: &str, origin: &str) -> Result<Revocations>
pub fn parse(text: &str, origin: &str) -> Result<Revocations>
Parse the text of a revocation file; origin names it in errors.
pub fn contains(&self, fp: &[u8; 32]) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &[u8; 32]>
Trait Implementations§
Source§impl Clone for Revocations
impl Clone for Revocations
Source§impl Debug for Revocations
impl Debug for Revocations
Source§impl Default for Revocations
impl Default for Revocations
impl Eq for Revocations
Source§impl FromIterator<[u8; 32]> for Revocations
impl FromIterator<[u8; 32]> for Revocations
Source§impl PartialEq for Revocations
impl PartialEq for Revocations
impl StructuralPartialEq for Revocations
Auto Trait Implementations§
impl Freeze for Revocations
impl RefUnwindSafe for Revocations
impl Send for Revocations
impl Sync for Revocations
impl Unpin for Revocations
impl UnsafeUnpin for Revocations
impl UnwindSafe for Revocations
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<T> DefaultBoxed for Twhere
T: Default,
impl<T> DefaultBoxed for Twhere
T: Default,
Source§unsafe fn default_in_place(ptr: *mut T)
unsafe fn default_in_place(ptr: *mut T)
Fill the given memory location with default value. Read more
Source§fn default_boxed() -> Box<Self>where
Self: Sized,
fn default_boxed() -> Box<Self>where
Self: Sized,
Create a boxed instance with default value for each field.
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<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