Struct sequoia_net::updates::Manifest
source · pub struct Manifest { /* private fields */ }
Expand description
Set of certificate updates.
Implementations§
source§impl Manifest
impl Manifest
sourcepub const MAGIC: &'static [u8] = b"\xE4\x2B\xAF\xBD\xD5\x75\x77\x0A"
pub const MAGIC: &'static [u8] = b"\xE4\x2B\xAF\xBD\xD5\x75\x77\x0A"
Magic string for Update Manifests.
sourcepub fn contains(&self, fingerprint: &Fingerprint) -> bool
pub fn contains(&self, fingerprint: &Fingerprint) -> bool
Tests whether a cert is included in the Update Manifest.
Note: Due to the privacy-preserving nature of Update Manifests that store only fingerprint prefixes, this may return false positives.
sourcepub fn contains_epoch(&self, epoch: Epoch) -> bool
pub fn contains_epoch(&self, epoch: Epoch) -> bool
Tests whether an epoch is included in the Update Manifest.
sourcepub fn epochs(&self) -> impl Iterator<Item = Epoch>
pub fn epochs(&self) -> impl Iterator<Item = Epoch>
Iterates over all epochs contained in this Update Manifest.
sourcepub fn insert(&mut self, fingerprint: &Fingerprint)
pub fn insert(&mut self, fingerprint: &Fingerprint)
Inserts a fingerprint into the Update Manifest.
Trait Implementations§
source§impl PartialEq for Manifest
impl PartialEq for Manifest
impl Eq for Manifest
impl StructuralEq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.