pub struct PlanRecord { /* private fields */ }Expand description
Validated saved evidence only. No public raw constructor or serde implementation.
Implementations§
Source§impl PlanRecord
impl PlanRecord
pub fn capture( context: &ProtectedContext, captured: &CapturedImage, identity: &SlotIdentity, inputs: PlanInputs, ) -> Result<Self, &'static str>
pub fn encode(&self) -> Result<Vec<u8>, &'static str>
pub fn decode( bytes: &[u8], context: &ProtectedContext, ) -> Result<Self, &'static str>
Sourcepub fn match_capture_request(
&self,
image_id: &str,
inputs: &PlanInputs,
) -> Result<(), &'static str>
pub fn match_capture_request( &self, image_id: &str, inputs: &PlanInputs, ) -> Result<(), &'static str>
Bind decoded evidence to the exact host request, including operator overrides rather than merely accepting an internally consistent plan.
pub fn plan_bytes(&self) -> &[u8] ⓘ
pub fn installation_verified(&self) -> bool
Source§impl PlanRecord
impl PlanRecord
Sourcepub fn create_new(
&self,
path: &Path,
context: &ProtectedContext,
) -> Result<(), &'static str>
pub fn create_new( &self, path: &Path, context: &ProtectedContext, ) -> Result<(), &'static str>
Not a journal or lease. A failed call can leave a complete or partial file.
pub fn open( path: &Path, context: &ProtectedContext, ) -> Result<Self, &'static str>
Auto Trait Implementations§
impl Freeze for PlanRecord
impl RefUnwindSafe for PlanRecord
impl Send for PlanRecord
impl Sync for PlanRecord
impl Unpin for PlanRecord
impl UnsafeUnpin for PlanRecord
impl UnwindSafe for PlanRecord
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