pub struct Embedding {
pub hosts: Arc<HostRegistry>,
pub log: Arc<Mutex<Vec<Recorded>>>,
pub calls: Arc<Calls>,
}Expand description
Everything an embedding holds beside the compiled package: the registry a run calls through, the log the host writes decisions to, and the trace it records host calls in.
Fields§
§hosts: Arc<HostRegistry>The registry, ready to be handed to RulePackage::serve.
log: Arc<Mutex<Vec<Recorded>>>What the rules have reported back, in order.
calls: Arc<Calls>Every host call the run made, with the request that made it.
Auto Trait Implementations§
impl !RefUnwindSafe for Embedding
impl !UnwindSafe for Embedding
impl Freeze for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnsafeUnpin for Embedding
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