pub struct DurableWorkload {
pub workload_id: u32,
pub provider_npub: String,
pub state: WorkloadState,
pub replication: ReplicationMode,
pub restart_policy: RestartPolicy,
pub state_uri: Option<String>,
pub created_at: u64,
pub expires_at: u64,
}Expand description
One workload as tracked by a provider.
Fields§
§workload_id: u32§provider_npub: String§state: WorkloadState§replication: ReplicationMode§restart_policy: RestartPolicy§state_uri: Option<String>Optional Blossom URI of the latest checkpoint (Unit 6).
created_at: u64§expires_at: u64Trait Implementations§
Source§impl Clone for DurableWorkload
impl Clone for DurableWorkload
Source§fn clone(&self) -> DurableWorkload
fn clone(&self) -> DurableWorkload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DurableWorkload
impl RefUnwindSafe for DurableWorkload
impl Send for DurableWorkload
impl Sync for DurableWorkload
impl Unpin for DurableWorkload
impl UnsafeUnpin for DurableWorkload
impl UnwindSafe for DurableWorkload
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more