pub struct Instance {
pub id: InstanceId,
pub environment: EnvironmentId,
pub revision: u32,
pub desired: Desired,
pub overrides: VarSet,
pub sources: Vec<String>,
pub slot: Option<u16>,
}Expand description
A revision as something to run: which one, whether it should be running, the overrides on
top of its vars and the sources whose overlays it takes. Where it runs is its
SlotLease (none until it is leased one).
Fields§
§id: InstanceIdIts id.
environment: EnvironmentIdThe environment.
revision: u32The revision it runs.
desired: DesiredWhether it should be running.
overrides: VarSetVars that override every other layer.
sources: Vec<String>The overlay sources it takes, by name (e.g. user), in order.
slot: Option<u16>Its slot, when leased.
Trait Implementations§
impl Eq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.