pub struct VerifiedInstallation { /* private fields */ }Expand description
A held file snapshot, not a runnable host or mutation capability.
Implementations§
Source§impl VerifiedInstallation
impl VerifiedInstallation
pub fn load(host_path: &Path) -> Result<Self, Invalid>
pub fn revalidate(&self) -> Result<(), Invalid>
Sourcepub fn validate_request(&self, r: &Request) -> Result<(), Invalid>
pub fn validate_request(&self, r: &Request) -> Result<(), Invalid>
Binds an already journal-authorized request to this exact installed snapshot; does not infer a request, endpoint or identity from environment.
Sourcepub fn snapshot(&self) -> Result<InstallationSnapshot, Invalid>
pub fn snapshot(&self) -> Result<InstallationSnapshot, Invalid>
Future host must execute this held descriptor, not reopen an ambient path. Reading this descriptor is not permission to bypass journal authorization.
pub fn config_bytes(&self) -> Result<&[u8], Invalid>
pub fn engine_binding(&self) -> Result<&EngineBinding, Invalid>
pub fn executable(&self) -> Result<&File, Invalid>
Auto Trait Implementations§
impl Freeze for VerifiedInstallation
impl RefUnwindSafe for VerifiedInstallation
impl Send for VerifiedInstallation
impl Sync for VerifiedInstallation
impl Unpin for VerifiedInstallation
impl UnsafeUnpin for VerifiedInstallation
impl UnwindSafe for VerifiedInstallation
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