pub enum ImageProgramStageOperationV1 {
Native {
plan: Box<ImageProgramNativeStageV1>,
},
MaskBlend {
base: u16,
overlay: u16,
mask: u16,
output: u16,
},
RestoreCheckpoint {
checkpoint: u16,
state: u16,
implementation: Digest,
},
CaptureCheckpoint {
state: u16,
checkpoint: u16,
implementation: Digest,
},
}Expand description
One ordered resident program operation.
Variants§
Native
Diffusion or direct-VAE work performed by the resident native runtime.
Fields
§
plan: Box<ImageProgramNativeStageV1>Exact native-stage mechanics.
MaskBlend
Exact deterministic RGB8 mask blend.
Fields
RestoreCheckpoint
Deserialize an authenticated checkpoint into request-local native state.
Fields
CaptureCheckpoint
Serialize request-local native state into an authenticated checkpoint.
Implementations§
Source§impl ImageProgramStageOperationV1
impl ImageProgramStageOperationV1
Sourcepub fn referenced_values(&self) -> Vec<u16>
pub fn referenced_values(&self) -> Vec<u16>
Returns logical values consumed by this operation in canonical order.
Sourcepub fn produced_values(&self) -> Vec<u16>
pub fn produced_values(&self) -> Vec<u16>
Returns logical values produced by this operation in canonical order.
Trait Implementations§
Source§impl Clone for ImageProgramStageOperationV1
impl Clone for ImageProgramStageOperationV1
Source§impl Debug for ImageProgramStageOperationV1
impl Debug for ImageProgramStageOperationV1
Source§impl<'de> Deserialize<'de> for ImageProgramStageOperationV1
impl<'de> Deserialize<'de> for ImageProgramStageOperationV1
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 StructuralPartialEq for ImageProgramStageOperationV1
Auto Trait Implementations§
impl Freeze for ImageProgramStageOperationV1
impl RefUnwindSafe for ImageProgramStageOperationV1
impl Send for ImageProgramStageOperationV1
impl Sync for ImageProgramStageOperationV1
impl Unpin for ImageProgramStageOperationV1
impl UnsafeUnpin for ImageProgramStageOperationV1
impl UnwindSafe for ImageProgramStageOperationV1
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