pub struct ModuleTaskState { /* private fields */ }Implementations§
Source§impl ModuleTaskState
impl ModuleTaskState
pub fn from_snapshot( current_files: Vec<PathBuf>, loading: Vec<PathBuf>, exports: Vec<Option<Vec<String>>>, ) -> Self
pub fn current_file(&self) -> Option<PathBuf>
pub fn push_current_file(&self, path: PathBuf) -> Result<ScopeId, IdExhausted>
pub fn remove_current_file(&self, id: ScopeId) -> bool
pub fn pop_current_file(&self) -> Option<PathBuf>
pub fn loading(&self) -> Vec<PathBuf>
pub fn push_loading(&self, path: PathBuf) -> Result<ScopeId, IdExhausted>
pub fn remove_loading(&self, id: ScopeId) -> bool
pub fn exports(&self) -> Vec<Option<Vec<String>>>
pub fn push_exports( &self, exports: Option<Vec<String>>, ) -> Result<ScopeId, IdExhausted>
pub fn set_current_exports(&self, exports: Vec<String>) -> bool
pub fn take_exports(&self, id: ScopeId) -> Option<Option<Vec<String>>>
pub fn remove_exports(&self, id: ScopeId) -> bool
pub fn pop_exports(&self) -> Option<Option<Vec<String>>>
Trait Implementations§
Source§impl Debug for ModuleTaskState
impl Debug for ModuleTaskState
Source§impl Default for ModuleTaskState
impl Default for ModuleTaskState
Source§impl TaskLocalValue for ModuleTaskState
impl TaskLocalValue for ModuleTaskState
fn inherit(&self) -> Rc<dyn TaskLocalValue>
fn as_any(&self) -> &dyn Any
Source§fn preflight_error(&self) -> Option<SemaError>
fn preflight_error(&self) -> Option<SemaError>
A task-local extension may fail a task before its next VM quantum. This is for
shared fail-closed state (for example, a workflow child invalidating its owner),
not ordinary language-level cancellation.
Auto Trait Implementations§
impl !Freeze for ModuleTaskState
impl !RefUnwindSafe for ModuleTaskState
impl !Sync for ModuleTaskState
impl Send for ModuleTaskState
impl Unpin for ModuleTaskState
impl UnsafeUnpin for ModuleTaskState
impl UnwindSafe for ModuleTaskState
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