pub struct Account {
pub host_io: HostIo,
pub identities: Identities,
pub identify: Option<Identify>,
pub places: Places,
pub receipts: Option<PathBuf>,
pub steps: Option<Arc<AtomicU64>>,
}Expand description
The account a run gives of itself besides its value, filled while it runs and read after it ends, whether it returned or raised.
Fields§
§host_io: HostIoHost calls through granted host names, per process.
identities: IdentitiesEach definition’s def_hash, and the run’s under receipt::RUN.
identify: Option<Identify>How the identities are computed from the program, once it is lowered.
Without one, no trace or receipt names a def_hash, and no trace
names the file, line and column of a breaching call.
places: PlacesEach definition’s file, read from the program when it identifies.
receipts: Option<PathBuf>Where each held process writes its receipt; none are written without.
steps: Option<Arc<AtomicU64>>Implementations§
Source§impl Account
impl Account
Sourcepub fn defer_identities(
&self,
program: &ResolvedProgram,
lowered: Arc<Vec<Spanned>>,
main: Option<String>,
) -> bool
pub fn defer_identities( &self, program: &ResolvedProgram, lowered: Arc<Vec<Spanned>>, main: Option<String>, ) -> bool
Name program’s definitions in this account’s identities, computed
by its identify from the lowered tree when first asked, with the
entry’s main under receipt::RUN. false, and nothing deferred,
for an account that does not identify.