pub struct CapabilityLockfile {
pub provider: LockfileProvider,
pub attested_at: String,
pub hello: LockfileHello,
pub device: LockfileDevice,
pub digest: Hash,
}Expand description
The capability lockfile pointlock lock freezes after talking to a real
daemon (spine §4.1 CapabilityLockfile). Its digest is embedded into
FlowIR.lockfileDigest at compile time and re-checked by attestation at
every openSession.
Fields§
§provider: LockfileProviderThe provider package that produced this lockfile.
attested_at: StringISO timestamp of the lock run.
hello: LockfileHelloFrozen system.hello outcome.
device: LockfileDeviceFrozen device.capabilities outcome.
digest: Hashsha256 of the canonical form of the fields above (see
lockfile_digest); embedded into FlowIR.lockfileDigest.
Implementations§
Source§impl CapabilityLockfile
impl CapabilityLockfile
Sourcepub fn digest_consistent(&self) -> bool
pub fn digest_consistent(&self) -> bool
Recomputes the digest from this lockfile’s content and compares it to
the stored digest field.
Trait Implementations§
Source§impl Clone for CapabilityLockfile
impl Clone for CapabilityLockfile
Source§fn clone(&self) -> CapabilityLockfile
fn clone(&self) -> CapabilityLockfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapabilityLockfile
impl Debug for CapabilityLockfile
Source§impl<'de> Deserialize<'de> for CapabilityLockfile
impl<'de> Deserialize<'de> for CapabilityLockfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CapabilityLockfile
impl JsonSchema for CapabilityLockfile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CapabilityLockfile
impl PartialEq for CapabilityLockfile
Source§impl Serialize for CapabilityLockfile
impl Serialize for CapabilityLockfile
impl StructuralPartialEq for CapabilityLockfile
Auto Trait Implementations§
impl Freeze for CapabilityLockfile
impl RefUnwindSafe for CapabilityLockfile
impl Send for CapabilityLockfile
impl Sync for CapabilityLockfile
impl Unpin for CapabilityLockfile
impl UnsafeUnpin for CapabilityLockfile
impl UnwindSafe for CapabilityLockfile
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