pub struct OperationOracleRegistry { /* private fields */ }Expand description
Trusted concrete registry that owns contracts and exact oracle objects for the lifetime of every bound invocation handle.
Implementations§
Source§impl OperationOracleRegistry
impl OperationOracleRegistry
pub fn new( catalog: &CapabilityCatalog, contracts: Vec<Box<dyn OperationContract>>, registrations: Vec<OperationOracleRegistration>, ) -> Result<Self, VNextError>
pub fn catalog_fingerprint(&self) -> &str
pub fn contract( &self, operation_id: &OperationId, ) -> Result<&dyn OperationContract, VNextError>
pub fn bind<'registry>( &'registry self, operation_id: &OperationId, ) -> Result<BoundOperationOracle<'registry>, VNextError>
Auto Trait Implementations§
impl !RefUnwindSafe for OperationOracleRegistry
impl !UnwindSafe for OperationOracleRegistry
impl Freeze for OperationOracleRegistry
impl Send for OperationOracleRegistry
impl Sync for OperationOracleRegistry
impl Unpin for OperationOracleRegistry
impl UnsafeUnpin for OperationOracleRegistry
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