pub struct NoOpOracle;Expand description
A no-op oracle that accepts adjudication requests and immediately returns a unit handle.
§Test / Default Stub
- Does NOT surface requests to any external system.
- The returned
()handle cannot be used to correlate anAdjudicationResponse. - With this oracle present,
oracle_present = truein the gate Proposal; therefore conflicting claims route toQueuedForAdjudicationrather thanContested. No verdict ever arrives, leaving them inQueuedForAdjudicationindefinitely. - Suitable for unit tests that don’t care about oracle resolution and for the
DefaultEnginealias.
Trait Implementations§
Source§impl Clone for NoOpOracle
impl Clone for NoOpOracle
Source§fn clone(&self) -> NoOpOracle
fn clone(&self) -> NoOpOracle
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 moreSource§impl Debug for NoOpOracle
impl Debug for NoOpOracle
Source§impl OraclePort for NoOpOracle
impl OraclePort for NoOpOracle
Source§fn handle_to_uuid(_handle: &Self::Handle) -> Uuid
fn handle_to_uuid(_handle: &Self::Handle) -> Uuid
NoOpOracle never correlates responses, so return a fresh UUID. The pending row will be persisted but never resolved (no verdict arrives).
type Error = NoOpError
Source§fn request_adjudication(
&self,
_agent_id: &AgentId,
_request: AdjudicationRequest,
) -> Result<Self::Handle, Self::Error>
fn request_adjudication( &self, _agent_id: &AgentId, _request: AdjudicationRequest, ) -> Result<Self::Handle, Self::Error>
Engine requests adjudication. Returns immediately. Handle used for correlation.
Host delivers response asynchronously back into the engine
via
EngineHandle::submit_adjudication.Auto Trait Implementations§
impl Freeze for NoOpOracle
impl RefUnwindSafe for NoOpOracle
impl Send for NoOpOracle
impl Sync for NoOpOracle
impl Unpin for NoOpOracle
impl UnsafeUnpin for NoOpOracle
impl UnwindSafe for NoOpOracle
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