pub struct DependencyExecutionResultCache { /* private fields */ }Implementations§
Source§impl DependencyExecutionResultCache
impl DependencyExecutionResultCache
pub fn new() -> Self
pub fn get( &self, construct_did: &ConstructDid, ) -> Option<&Result<CommandExecutionResult, Diagnostic>>
pub fn insert( &mut self, construct_did: ConstructDid, result: Result<CommandExecutionResult, Diagnostic>, )
Sourcepub fn merge(
&mut self,
construct_did: &ConstructDid,
other_result: &CommandExecutionResult,
) -> Result<(), Diagnostic>
pub fn merge( &mut self, construct_did: &ConstructDid, other_result: &CommandExecutionResult, ) -> Result<(), Diagnostic>
If self does not contain construct_did, insert construct_did with other_result.
If self contains construct_did, apply other_result onto the existing value by only inserting
each of the keys of other_result into self’s results at construct_did.
Trait Implementations§
Source§impl Clone for DependencyExecutionResultCache
impl Clone for DependencyExecutionResultCache
Source§fn clone(&self) -> DependencyExecutionResultCache
fn clone(&self) -> DependencyExecutionResultCache
Returns a duplicate of the value. Read more
1.0.0 · 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 DependencyExecutionResultCache
impl RefUnwindSafe for DependencyExecutionResultCache
impl Send for DependencyExecutionResultCache
impl Sync for DependencyExecutionResultCache
impl Unpin for DependencyExecutionResultCache
impl UnwindSafe for DependencyExecutionResultCache
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