Enum polar_core::events::QueryEvent [−][src]
pub enum QueryEvent {
Show 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,
},
ExternalUnify {
call_id: u64,
left_instance_id: u64,
right_instance_id: u64,
},
Result {
bindings: Bindings,
trace: Option<TraceResult>,
},
ExternalOp {
call_id: u64,
operator: Operator,
args: TermList,
},
NextExternal {
call_id: u64,
iterable: Term,
},
}Variants
This runnable is complete with result.
Show fields
Fields of Done
result: boolRun runnable, and report the result to its parent using call_id
when it completes.
Show fields
Fields of Debug
message: StringShow fields
Fields of ExternalCall
call_id: u64Persistent id across all requests for results from the same external call.
instance: TermThe external instance to make this call on.
attribute: SymbolField 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.
Checks if the instance is an instance of (a subclass of) the class_tag.
Starting from base_tag, traverse path fields and check if the result is an instance of
class_tag.
Checks if the left is more specific than right with respect to instance.
Show fields
Checks if left class tag is a subclass or the same class as right.
Unifies two external instances.
Show fields
Fields of Result
bindings: Bindingstrace: Option<TraceResult>Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for QueryEventimpl !Send for QueryEventimpl !Sync for QueryEventimpl Unpin for QueryEventimpl !UnwindSafe for QueryEventBlanket Implementations
Mutably borrows from an owned value. Read more