pub struct ProcessCheckerMachine { /* private fields */ }
Expand description
Checks the footers for a ProcessBinary
and decides whether to continue
loading the process based on the checking policy in checker
.
Implementations§
Source§impl ProcessCheckerMachine
impl ProcessCheckerMachine
pub fn new(policy: &'static dyn AppCredentialsPolicy<'static>) -> Self
pub fn set_client(&self, client: &'static dyn ProcessCheckerMachineClient)
pub fn set_policy(&self, policy: &'static dyn AppCredentialsPolicy<'static>)
Sourcepub fn check(
&self,
process_binary: ProcessBinary,
) -> Result<(), ProcessCheckError>
pub fn check( &self, process_binary: ProcessBinary, ) -> Result<(), ProcessCheckError>
Check this process_binary
to see if its credentials are valid.
This must be called from a interrupt callback chain.
Trait Implementations§
Source§impl AppCredentialsPolicyClient<'static> for ProcessCheckerMachine
impl AppCredentialsPolicyClient<'static> for ProcessCheckerMachine
Source§fn check_done(
&self,
result: Result<CheckResult, ErrorCode>,
credentials: TbfFooterV2Credentials,
_integrity_region: &'static [u8],
)
fn check_done( &self, result: Result<CheckResult, ErrorCode>, credentials: TbfFooterV2Credentials, _integrity_region: &'static [u8], )
The check for a particular credential is complete. Result of the check
is in
result
.Auto Trait Implementations§
impl !Freeze for ProcessCheckerMachine
impl !RefUnwindSafe for ProcessCheckerMachine
impl !Send for ProcessCheckerMachine
impl !Sync for ProcessCheckerMachine
impl Unpin for ProcessCheckerMachine
impl !UnwindSafe for ProcessCheckerMachine
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