pub struct RuntimeBundle { /* private fields */ }Expand description
A loaded, integrity-checked runtime bundle.
Implementations§
Source§impl RuntimeBundle
impl RuntimeBundle
Sourcepub fn open_verified(root: impl AsRef<Path>) -> Result<Self, BundleError>
pub fn open_verified(root: impl AsRef<Path>) -> Result<Self, BundleError>
Open and verify every indexed file in one installed bundle.
This is the supervisor/builder boundary: it rejects an unrelated changed asset or executable before an execution is created.
Sourcepub const fn document(&self) -> &RuntimeDocument
pub const fn document(&self) -> &RuntimeDocument
The validated persisted document.
Sourcepub fn robot(&self) -> &Robot
pub fn robot(&self) -> &Robot
The canonical robot loaded from runtime.json, with no source parser.
Sourcepub fn participants(&self) -> &[RuntimeParticipant]
pub fn participants(&self) -> &[RuntimeParticipant]
The final persisted participant set.
Sourcepub fn artifacts(&self) -> &BTreeMap<ParticipantArtifactId, BinaryReference>
pub fn artifacts(&self) -> &BTreeMap<ParticipantArtifactId, BinaryReference>
The reusable executable artifacts retained by this bundle.
Sourcepub const fn assets(&self) -> &ParticipantAssets
pub const fn assets(&self) -> &ParticipantAssets
Participant-readable digest-checked assets.
Sourcepub fn participant(
&self,
id: &ParticipantId,
) -> Result<&RuntimeParticipant, SelectionError>
pub fn participant( &self, id: &ParticipantId, ) -> Result<&RuntimeParticipant, SelectionError>
Select one exact participant record before opening any bus session.
Sourcepub fn participant_inputs(
&self,
id: &ParticipantId,
) -> Result<ParticipantRuntimeInputs, SelectionError>
pub fn participant_inputs( &self, id: &ParticipantId, ) -> Result<ParticipantRuntimeInputs, SelectionError>
Build one selected runtime-input object.
Trait Implementations§
Source§impl Clone for RuntimeBundle
impl Clone for RuntimeBundle
Source§fn clone(&self) -> RuntimeBundle
fn clone(&self) -> RuntimeBundle
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 RuntimeBundle
impl RefUnwindSafe for RuntimeBundle
impl Send for RuntimeBundle
impl Sync for RuntimeBundle
impl Unpin for RuntimeBundle
impl UnsafeUnpin for RuntimeBundle
impl UnwindSafe for RuntimeBundle
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