pub struct TestEngine { /* private fields */ }Implementations§
Source§impl TestEngine
impl TestEngine
pub fn new() -> TestEngine
Trait Implementations§
Source§impl Default for TestEngine
impl Default for TestEngine
Source§impl Engine for TestEngine
impl Engine for TestEngine
type Policy = TestPolicy
type Effect = TestEffect
Source§fn add_policy(&mut self, policy: &[u8]) -> Result<PolicyId, EngineError>
fn add_policy(&mut self, policy: &[u8]) -> Result<PolicyId, EngineError>
Add a policy to this runtime. Read more
Source§fn get_policy(&self, _id: PolicyId) -> Result<&Self::Policy, EngineError>
fn get_policy(&self, _id: PolicyId) -> Result<&Self::Policy, EngineError>
Get a policy from this runtime. Read more
Auto Trait Implementations§
impl Freeze for TestEngine
impl RefUnwindSafe for TestEngine
impl Send for TestEngine
impl Sync for TestEngine
impl Unpin for TestEngine
impl UnwindSafe for TestEngine
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