pub struct Script {
pub name: String,
/* private fields */
}Expand description
A script running.
Fields§
§name: StringImplementations§
Source§impl Script
impl Script
Sourcepub fn start(
name: &str,
source: String,
info: CallInfo,
wake: impl Fn() + Send + 'static,
) -> Script
pub fn start( name: &str, source: String, info: CallInfo, wake: impl Fn() + Send + 'static, ) -> Script
Start source; wake is called (from the script’s thread) when it
has something for Script::poll.
pub fn screen(&self, text: String)
Sourcepub fn poll(&mut self) -> Vec<FromScript>
pub fn poll(&mut self) -> Vec<FromScript>
What it asks for now.
pub fn is_done(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Script
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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