pub enum AttemptExecution {
Native {
process_id: Option<u32>,
},
Isolated {
provider_kind: Backend,
environment_id: Option<String>,
resolved_image: ImageReference,
generation: String,
},
}Expand description
The execution identity belongs to exactly one provider kind. The native
start token is retained in the existing durable runtime sidecar; the
process ID here matches the journal’s legacy process_id column.
Variants§
Implementations§
Source§impl AttemptExecution
impl AttemptExecution
Sourcepub fn can_advance_to(&self, next: &Self) -> bool
pub fn can_advance_to(&self, next: &Self) -> bool
The provider allocation and generation cannot change after the first journal write. Native PID and isolated environment ID may be filled once, then only repeated with the same value.
pub fn validate(&self) -> Result<(), ExecutionError>
pub const fn is_native(&self) -> bool
Trait Implementations§
Source§impl Clone for AttemptExecution
impl Clone for AttemptExecution
Source§impl Debug for AttemptExecution
impl Debug for AttemptExecution
Source§impl<'de> Deserialize<'de> for AttemptExecution
impl<'de> Deserialize<'de> for AttemptExecution
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttemptExecution
Source§impl PartialEq for AttemptExecution
impl PartialEq for AttemptExecution
Source§impl Serialize for AttemptExecution
impl Serialize for AttemptExecution
impl StructuralPartialEq for AttemptExecution
Auto Trait Implementations§
impl Freeze for AttemptExecution
impl RefUnwindSafe for AttemptExecution
impl Send for AttemptExecution
impl Sync for AttemptExecution
impl Unpin for AttemptExecution
impl UnsafeUnpin for AttemptExecution
impl UnwindSafe for AttemptExecution
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