pub struct PersistentExecutor { /* private fields */ }Expand description
Authenticated persistent queue session over one immutable artifact identity.
Implementations§
Source§impl PersistentExecutor
impl PersistentExecutor
Sourcepub fn from_bytes(
registration: &'static BackendRegistration,
envelope_bytes: &[u8],
initial: ResidentQueueState,
) -> Result<Self, ArtifactSessionError>
pub fn from_bytes( registration: &'static BackendRegistration, envelope_bytes: &[u8], initial: ResidentQueueState, ) -> Result<Self, ArtifactSessionError>
Authenticate and materialize an artifact envelope, then initialize retained queue state.
Sourcepub fn artifact(&self) -> Result<Digest, ArtifactSessionError>
pub fn artifact(&self) -> Result<Digest, ArtifactSessionError>
Neutral artifact identity preserved across every queue update and recovery.
Sourcepub fn device(&self) -> Result<DeviceIdentity, ArtifactSessionError>
pub fn device(&self) -> Result<DeviceIdentity, ArtifactSessionError>
Current acquired device generation.
Sourcepub fn submit_and_wait(
&self,
state: ResidentQueueState,
) -> Result<ResidentQueueCompletion, ArtifactSessionError>
pub fn submit_and_wait( &self, state: ResidentQueueState, ) -> Result<ResidentQueueCompletion, ArtifactSessionError>
Replace the host queue mirror, submit once, and return the updated retained state.
Sourcepub fn recover(
&self,
failure: BackendError,
) -> Result<DeviceIdentity, ArtifactSessionError>
pub fn recover( &self, failure: BackendError, ) -> Result<DeviceIdentity, ArtifactSessionError>
Rematerialize authenticated bytes after a structured device-loss failure.
§Errors
Returns the original backend failure for every non-device-loss class.
Auto Trait Implementations§
impl !Freeze for PersistentExecutor
impl RefUnwindSafe for PersistentExecutor
impl Send for PersistentExecutor
impl Sync for PersistentExecutor
impl Unpin for PersistentExecutor
impl UnsafeUnpin for PersistentExecutor
impl UnwindSafe for PersistentExecutor
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