pub enum BarEnd {
At {
at: u64,
},
Open,
Unknown,
Other,
}Expand description
How a bar or a runner’s span ends.
Variants§
At
It ended then, maybe after the window.
Open
It goes on: the job runs or waits, the container is up.
Unknown
It ended, and the history does not say when.
Other
A newer daemon’s end this version does not know.
Implementations§
Source§impl BarEnd
impl BarEnd
Sourcepub fn of_job(
finished_at: Option<u64>,
cleaned_at: Option<u64>,
open: bool,
) -> BarEnd
pub fn of_job( finished_at: Option<u64>, cleaned_at: Option<u64>, open: bool, ) -> BarEnd
How a job’s bar ends: when it finished, or when its runner was removed if that came first, as when
stop --force removes a container before GitHub says the job ended; open while the job is, and unknown once
it is final without a time.
Trait Implementations§
impl Copy for BarEnd
Source§impl<'de> Deserialize<'de> for BarEnd
impl<'de> Deserialize<'de> for BarEnd
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BarEnd
impl StructuralPartialEq for BarEnd
Auto Trait Implementations§
impl Forget for BarEnd
impl Freeze for BarEnd
impl Move for BarEnd
impl RefUnwindSafe for BarEnd
impl Send for BarEnd
impl Sync for BarEnd
impl Unpin for BarEnd
impl UnsafeUnpin for BarEnd
impl UnwindSafe for BarEnd
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,
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
Compare self to
key and return true if they are equal.