pub struct CacheManifest { /* private fields */ }Expand description
A frozen v1 cache manifest with its generated record kept private.
Implementations§
Source§impl CacheManifest
impl CacheManifest
Sourcepub fn read(path: impl AsRef<Path>) -> Result<Self, DaemonRegistrationError>
pub fn read(path: impl AsRef<Path>) -> Result<Self, DaemonRegistrationError>
Read, schema-check, and verify a sealed frozen v1 manifest.
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Service name retained in the v1 record.
Sourcepub fn service_version(&self) -> &str
pub fn service_version(&self) -> &str
Service version retained in the v1 record.
Sourcepub fn broker_envelope_version(&self) -> &str
pub fn broker_envelope_version(&self) -> &str
Broker envelope version retained in the v1 record.
Sourcepub fn broker_instance(&self) -> &str
pub fn broker_instance(&self) -> &str
Application-selected broker-instance label.
Sourcepub fn schema_version(&self) -> u32
pub fn schema_version(&self) -> u32
Frozen v1 schema number.
Sourcepub fn media_type(&self) -> &str
pub fn media_type(&self) -> &str
Frozen v1 media type.
Sourcepub fn created_at_unix_ms(&self) -> u64
pub fn created_at_unix_ms(&self) -> u64
Unix-millisecond creation time stamped by the v1 builder.
Sourcepub fn last_active_unix_ms(&self) -> u64
pub fn last_active_unix_ms(&self) -> u64
Unix-millisecond last-active time stamped by the v1 builder.
Sourcepub fn has_host_identity(&self) -> bool
pub fn has_host_identity(&self) -> bool
Whether the v1 builder stamped host identity metadata.
Sourcepub fn has_sha256_seal(&self) -> bool
pub fn has_sha256_seal(&self) -> bool
Whether the manifest carries a correctly sized v1 seal.
Sourcepub fn roots(&self) -> impl ExactSizeIterator<Item = CacheRoot<'_>>
pub fn roots(&self) -> impl ExactSizeIterator<Item = CacheRoot<'_>>
Ordered cache roots retained by the manifest.
Trait Implementations§
Source§impl Clone for CacheManifest
impl Clone for CacheManifest
Source§impl Debug for CacheManifest
impl Debug for CacheManifest
Source§impl PartialEq for CacheManifest
impl PartialEq for CacheManifest
impl StructuralPartialEq for CacheManifest
Auto Trait Implementations§
impl Freeze for CacheManifest
impl RefUnwindSafe for CacheManifest
impl Send for CacheManifest
impl Sync for CacheManifest
impl Unpin for CacheManifest
impl UnsafeUnpin for CacheManifest
impl UnwindSafe for CacheManifest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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