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
.
Run
Run runnable
, and report the result to its parent using call_id
when it completes.
Debug
MakeExternal
ExternalCall
Fields
ExternalIsa
Checks if the instance is an instance of (a subclass of) the class_tag.
ExternalIsaWithPath
Starting from base_tag
, traverse path
fields and check if the result is an instance of
class_tag
.
ExternalIsSubSpecializer
Checks if the left is more specific than right with respect to instance.
ExternalIsSubclass
Checks if left class tag is a subclass or the same class as right.
Result
ExternalOp
NextExternal
Trait Implementations§
Source§impl Clone for QueryEvent
impl Clone for QueryEvent
Source§fn clone(&self) -> QueryEvent
fn clone(&self) -> QueryEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryEvent
impl Debug for QueryEvent
Source§impl<'de> Deserialize<'de> for QueryEvent
impl<'de> Deserialize<'de> for QueryEvent
Source§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 Freeze for QueryEvent
impl !RefUnwindSafe for QueryEvent
impl !Send for QueryEvent
impl !Sync for QueryEvent
impl Unpin for QueryEvent
impl !UnwindSafe for QueryEvent
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