Skip to main content

World

Struct World 

Source
pub struct World {
Show 21 fields pub now: Timestamp, pub current: GenerationId, pub boot_default: GenerationId, pub boot_entries: BTreeSet<GenerationId>, pub generations: BTreeMap<GenerationId, StorePath>, pub bad: BTreeSet<GenerationId>, pub env_fault: bool, pub override_hash: Hash, pub units: BTreeMap<UnitId, Observed>, pub devices: BTreeMap<UnitId, Option<DriverRef>>, pub bad_drivers: BTreeSet<String>, pub jobs: BTreeMap<JobId, FakeJob>, pub next_job: u64, pub slow_activation: Option<(Millis, bool)>, pub fail_activate: BTreeSet<GenerationId>, pub fail_publish: bool, pub jobs_tagged_unknown: bool, pub calls: Vec<CallLog>, pub alive: BTreeSet<u32>, pub unkillable: BTreeSet<u32>, pub gc_roots: BTreeSet<String>,
}

Fields§

§now: Timestamp§current: GenerationId§boot_default: GenerationId§boot_entries: BTreeSet<GenerationId>§generations: BTreeMap<GenerationId, StorePath>§bad: BTreeSet<GenerationId>

Generations whose probes fail.

§env_fault: bool

Every probe fails (an environmental fault coinciding with a change).

§override_hash: Hash§units: BTreeMap<UnitId, Observed>§devices: BTreeMap<UnitId, Option<DriverRef>>§bad_drivers: BTreeSet<String>

Probes fail while any device is bound to one of these drivers.

§jobs: BTreeMap<JobId, FakeJob>§next_job: u64§slow_activation: Option<(Millis, bool)>

activate_live accepts the job but never replies; the job runs for this long.

§fail_activate: BTreeSet<GenerationId>

activate_live of these generations fails outright.

§fail_publish: bool§jobs_tagged_unknown: bool§calls: Vec<CallLog>§alive: BTreeSet<u32>§unkillable: BTreeSet<u32>§gc_roots: BTreeSet<String>

Implementations§

Source§

impl World

Source

fn tick(&mut self)

Trait Implementations§

Source§

impl Debug for World

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for World

Source§

fn default() -> World

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for World

§

impl RefUnwindSafe for World

§

impl Send for World

§

impl Sync for World

§

impl Unpin for World

§

impl UnsafeUnpin for World

§

impl UnwindSafe for World

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.