pub struct RetainedArtifactSession { /* private fields */ }Expand description
Runtime-owned retained binding policy over one immutable ArtifactSession.
Implementations§
Source§impl RetainedArtifactSession
impl RetainedArtifactSession
Sourcepub fn new(
session: ArtifactSession,
initial: BTreeMap<ArtifactValueId, Vec<u8>>,
) -> Result<Self, ArtifactSessionError>
pub fn new( session: ArtifactSession, initial: BTreeMap<ArtifactValueId, Vec<u8>>, ) -> Result<Self, ArtifactSessionError>
Create retained policy state and require every retained ABI value initially.
Sourcepub fn artifact(&self) -> Result<Digest, ArtifactSessionError>
pub fn artifact(&self) -> Result<Digest, ArtifactSessionError>
Neutral artifact identity shared with ephemeral sessions.
Sourcepub fn device(&self) -> Result<DeviceIdentity, ArtifactSessionError>
pub fn device(&self) -> Result<DeviceIdentity, ArtifactSessionError>
Current immutable device generation identity.
Sourcepub fn bindings(&self) -> Result<BindingSet, ArtifactSessionError>
pub fn bindings(&self) -> Result<BindingSet, ArtifactSessionError>
Build empty transient bindings for the shared neutral artifact.
Sourcepub fn rematerialize(&self) -> Result<DeviceIdentity, ArtifactSessionError>
pub fn rematerialize(&self) -> Result<DeviceIdentity, ArtifactSessionError>
Reacquire a device and rematerialize the authenticated artifact bytes.
Sourcepub fn replace_retained(
&self,
values: BTreeMap<ArtifactValueId, Vec<u8>>,
) -> Result<(), ArtifactSessionError>
pub fn replace_retained( &self, values: BTreeMap<ArtifactValueId, Vec<u8>>, ) -> Result<(), ArtifactSessionError>
Replace runtime-owned retained bytes before the next submission.
§Errors
Returns an error unless the update covers exactly every retained ABI value.
Sourcepub fn submit_and_wait(
&self,
bindings: BindingSet,
) -> Result<Completion, ArtifactSessionError>
pub fn submit_and_wait( &self, bindings: BindingSet, ) -> Result<Completion, ArtifactSessionError>
Submit transient bindings, merge retained state, and atomically retain completion state.
Auto Trait Implementations§
impl !Freeze for RetainedArtifactSession
impl RefUnwindSafe for RetainedArtifactSession
impl Send for RetainedArtifactSession
impl Sync for RetainedArtifactSession
impl Unpin for RetainedArtifactSession
impl UnsafeUnpin for RetainedArtifactSession
impl UnwindSafe for RetainedArtifactSession
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