Enum polar_core::events::QueryEvent[][src]

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

This runnable is complete with result.

Fields of Done

result: bool
Run

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

Fields of Run

call_id: u64runnable: Box<dyn Runnable>
Debug

Fields of Debug

message: String
MakeExternal

Fields of MakeExternal

instance_id: u64constructor: Term
ExternalCall

Fields of ExternalCall

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

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

Fields of ExternalIsa

call_id: u64instance: Termclass_tag: Symbol
ExternalIsaWithPath

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

Fields of ExternalIsaWithPath

call_id: u64base_tag: Symbolpath: TermListclass_tag: Symbol
ExternalIsSubSpecializer

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

Fields of ExternalIsSubSpecializer

call_id: u64instance_id: u64left_class_tag: Symbolright_class_tag: Symbol
ExternalIsSubclass

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

Fields of ExternalIsSubclass

call_id: u64left_class_tag: Symbolright_class_tag: Symbol
Result

Fields of Result

bindings: Bindingstrace: Option<TraceResult>
ExternalOp

Fields of ExternalOp

call_id: u64operator: Operatorargs: TermList
NextExternal

Fields of NextExternal

call_id: u64iterable: 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.