pub struct ParticipantBundle { /* private fields */ }Expand description
The exact runtime record a participant process was launched to consume.
Implementations§
Source§impl ParticipantBundle
impl ParticipantBundle
Sourcepub fn open(
root: impl AsRef<Path>,
id: &ParticipantId,
) -> Result<Self, BundleError>
pub fn open( root: impl AsRef<Path>, id: &ParticipantId, ) -> Result<Self, BundleError>
Open one participant’s selected runtime inputs without hashing unrelated indexed files. Binary integrity is the supervisor’s concern: it digest-verifies every staged executable when it opens the bundle, and a launched participant proves its identity through its embedded contract.
Sourcepub const fn inputs(&self) -> &ParticipantRuntimeInputs
pub const fn inputs(&self) -> &ParticipantRuntimeInputs
The selected, coherent runtime inputs.
Sourcepub fn into_inputs(self) -> ParticipantRuntimeInputs
pub fn into_inputs(self) -> ParticipantRuntimeInputs
Consume this selected bundle into its runtime inputs.
Trait Implementations§
Source§impl Clone for ParticipantBundle
impl Clone for ParticipantBundle
Source§fn clone(&self) -> ParticipantBundle
fn clone(&self) -> ParticipantBundle
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 ParticipantBundle
impl RefUnwindSafe for ParticipantBundle
impl Send for ParticipantBundle
impl Sync for ParticipantBundle
impl Unpin for ParticipantBundle
impl UnsafeUnpin for ParticipantBundle
impl UnwindSafe for ParticipantBundle
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