#[non_exhaustive]pub struct RunRecord {Show 14 fields
pub version: u32,
pub name: RunName,
pub project: PathBuf,
pub format: Format,
pub cloud: Option<Cloud>,
pub provider: Option<Provider>,
pub docker_context: Option<String>,
pub host_label: Option<String>,
pub state: RunState,
pub parked: Option<Park>,
pub started_at: Option<String>,
pub expires_at: Option<u64>,
pub last: Option<LastOp>,
pub env: BTreeMap<String, String>,
}Expand description
What the runner keeps about a run (never a secret’s value).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: u32The record format’s version.
name: RunNameThe run’s name.
project: PathBufThe project folder the run was last brought up or updated from, absolute: what a later
operation that has only the record (a sweep’s down) reopens.
format: FormatThe project’s format.
cloud: Option<Cloud>Its cloud, for a run on one: what the embedder sweeps runs by.
provider: Option<Provider>The Vagrant provider the run uses, when it has one.
docker_context: Option<String>The Docker context its docker calls go to (crate::RunOptions::docker_context).
host_label: Option<String>What the embedder calls the place the run is on (a server, an account).
state: RunStateWhere it stood after its last operation.
parked: Option<Park>How its last park parked it (Park::Pause or Park::Shutdown); none once a start,
a resume or a down followed. Meaningful while state is RunState::Parked.
started_at: Option<String>When it was last started.
expires_at: Option<u64>When it may be removed (crate::RunOptions::lifetime from its start), in seconds since
the Unix epoch: what the reaper reads.
last: Option<LastOp>The last operation.
env: BTreeMap<String, String>The values (not the secrets, which are never kept) the run was started or last updated
with (crate::RunOptions::with_env): every later operation gives them to the tool again
unless the caller gives a value of the same name, so a down, an auto-stop or an update
sees the variables its start applied (a Terraform module’s region).
Implementations§
Source§impl RunRecord
impl RunRecord
Sourcepub fn expired(&self, now: SystemTime) -> bool
pub fn expired(&self, now: SystemTime) -> bool
Whether its lifetime (crate::RunOptions::lifetime) passed at now and its last
operation didn’t leave it absent: a run that may still hold something, for a reaper to
take down.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RunRecord
impl StructuralPartialEq for RunRecord
Auto Trait Implementations§
impl Forget for RunRecord
impl Freeze for RunRecord
impl Move for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.