pub enum Request<'gc, C: CustomTypes<S>, S: System<C>> {
Input {
prompt: Option<Value<'gc, C, S>>,
},
Syscall {
name: CompactString,
args: Vec<Value<'gc, C, S>>,
},
Rpc {
host: Option<CompactString>,
service: CompactString,
rpc: CompactString,
args: VecMap<CompactString, Value<'gc, C, S>, false>,
},
Property {
prop: Property,
},
UnknownBlock {
name: CompactString,
args: Vec<Value<'gc, C, S>>,
},
}
Expand description
A value-returning request issued from the runtime.
Variants§
Input
Request input from the user. The prompt
argument is either Some
prompt to display, or None
for no prompt.
Syscall
Performs a system call on the local hardware to access device resources.
Rpc
Requests the system to execute the given RPC.
Fields
§
host: Option<CompactString>
§
service: CompactString
§
rpc: CompactString
§
args: VecMap<CompactString, Value<'gc, C, S>, false>
Property
Request to get the current value of an entity property.
UnknownBlock
Request to run a block which was not known by the ast parser or bytecode compiler. This is typically used for implementing extension blocks in the VM, which cannot be handled otherwise.
Implementations§
Auto Trait Implementations§
impl<'gc, C, S> Freeze for Request<'gc, C, S>
impl<'gc, C, S> !RefUnwindSafe for Request<'gc, C, S>
impl<'gc, C, S> !Send for Request<'gc, C, S>
impl<'gc, C, S> !Sync for Request<'gc, C, S>
impl<'gc, C, S> Unpin for Request<'gc, C, S>
impl<'gc, C, S> !UnwindSafe for Request<'gc, C, S>
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