pub struct SafetyCertifier { /* private fields */ }Expand description
The safety certifier engine.
Implementations§
Source§impl SafetyCertifier
impl SafetyCertifier
Sourcepub fn new(adapter: Box<dyn DomainAdapter>, config: CertifierConfig) -> Self
pub fn new(adapter: Box<dyn DomainAdapter>, config: CertifierConfig) -> Self
Create a new certifier with the given domain adapter and configuration.
Sourcepub fn certify(
&self,
action: &dyn ProposedAction,
) -> KernelResult<SafetyCertificate>
pub fn certify( &self, action: &dyn ProposedAction, ) -> KernelResult<SafetyCertificate>
Certify a proposed action.
Delegates to certify_action using the owned adapter.
Auto Trait Implementations§
impl Freeze for SafetyCertifier
impl !RefUnwindSafe for SafetyCertifier
impl Send for SafetyCertifier
impl Sync for SafetyCertifier
impl Unpin for SafetyCertifier
impl UnsafeUnpin for SafetyCertifier
impl !UnwindSafe for SafetyCertifier
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