pub enum QueryEvent {
Show 13 variants None, Done { result: bool, }, Run { call_id: u64, runnable: Box<dyn Runnable>, }, Debug { message: String, }, MakeExternal { instance_id: u64, constructor: Term, }, ExternalCall { call_id: u64, instance: Term, attribute: Symbol, args: Option<Vec<Term>>, kwargs: Option<BTreeMap<Symbol, Term>>, }, ExternalIsa { call_id: u64, instance: Term, class_tag: Symbol, }, ExternalIsaWithPath { call_id: u64, base_tag: Symbol, path: TermList, class_tag: Symbol, }, ExternalIsSubSpecializer { call_id: u64, instance_id: u64, left_class_tag: Symbol, right_class_tag: Symbol, }, ExternalIsSubclass { call_id: u64, left_class_tag: Symbol, right_class_tag: Symbol, }, Result { bindings: Bindings, trace: Option<TraceResult>, }, ExternalOp { call_id: u64, operator: Operator, args: TermList, }, NextExternal { call_id: u64, iterable: Term, },
}

Variants

None

Done

Fields

result: bool

This runnable is complete with result.

Run

Fields

call_id: u64
runnable: Box<dyn Runnable>

Run runnable, and report the result to its parent using call_id when it completes.

Debug

Fields

message: String

MakeExternal

Fields

instance_id: u64
constructor: Term

ExternalCall

Fields

call_id: u64

Persistent id across all requests for results from the same external call.

instance: Term

The external instance to make this call on.

attribute: Symbol

Field name to lookup or method name to call. A class name indicates a constructor should be called.

args: Option<Vec<Term>>

List of arguments to a method call.

kwargs: Option<BTreeMap<Symbol, Term>>

A map of keyword arguments to a method call.

ExternalIsa

Fields

call_id: u64
instance: Term
class_tag: Symbol

Checks if the instance is an instance of (a subclass of) the class_tag.

ExternalIsaWithPath

Fields

call_id: u64
base_tag: Symbol
path: TermList
class_tag: Symbol

Starting from base_tag, traverse path fields and check if the result is an instance of class_tag.

ExternalIsSubSpecializer

Fields

call_id: u64
instance_id: u64
left_class_tag: Symbol
right_class_tag: Symbol

Checks if the left is more specific than right with respect to instance.

ExternalIsSubclass

Fields

call_id: u64
left_class_tag: Symbol
right_class_tag: Symbol

Checks if left class tag is a subclass or the same class as right.

Result

Fields

bindings: Bindings

ExternalOp

Fields

call_id: u64
operator: Operator
args: TermList

NextExternal

Fields

call_id: u64
iterable: Term

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.