pub struct BoundOperationOracle<'registry> { /* private fields */ }Expand description
Non-cloneable authority borrowed from one registry-owned oracle object.
Implementations§
Source§impl BoundOperationOracle<'_>
impl BoundOperationOracle<'_>
pub fn requested_operation_id(&self) -> &OperationId
pub fn terminal_operation_id(&self) -> &OperationId
pub fn descriptor(&self) -> &OperationOracleDescriptor
pub fn comparison_policy(&self) -> &OracleSpec
pub fn invoke( &self, inputs: Vec<OracleTensor>, attributes: BTreeMap<AttributeId, SemanticValue>, ) -> Result<OperationOracleResult, VNextError>
pub fn invoke_and_compare( &self, inputs: Vec<OracleTensor>, attributes: BTreeMap<AttributeId, SemanticValue>, actual: &OperationOracleResult, ) -> Result<bool, VNextError>
Auto Trait Implementations§
impl<'registry> !RefUnwindSafe for BoundOperationOracle<'registry>
impl<'registry> !UnwindSafe for BoundOperationOracle<'registry>
impl<'registry> Freeze for BoundOperationOracle<'registry>
impl<'registry> Send for BoundOperationOracle<'registry>
impl<'registry> Sync for BoundOperationOracle<'registry>
impl<'registry> Unpin for BoundOperationOracle<'registry>
impl<'registry> UnsafeUnpin for BoundOperationOracle<'registry>
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