pub struct ScopedEffectController<'run> { /* private fields */ }Expand description
Scoped low-level controller plus the semantic effect scope it is serving.
Implementations§
Source§impl<'run> ScopedEffectController<'run>
impl<'run> ScopedEffectController<'run>
pub fn borrowed( controller: &'run dyn RuntimeEffectController, scope: EffectScope, ) -> Result<Self, RuntimeError>
pub fn controller(&self) -> &dyn RuntimeEffectController
pub fn effect_scope(&self) -> &EffectScope
pub fn scope_id(&self) -> &str
pub fn turn_id(&self) -> Option<&str>
Trait Implementations§
Source§impl<'run> Clone for ScopedEffectController<'run>
impl<'run> Clone for ScopedEffectController<'run>
Source§fn clone(&self) -> ScopedEffectController<'run>
fn clone(&self) -> ScopedEffectController<'run>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'run> !RefUnwindSafe for ScopedEffectController<'run>
impl<'run> !UnwindSafe for ScopedEffectController<'run>
impl<'run> Freeze for ScopedEffectController<'run>
impl<'run> Send for ScopedEffectController<'run>
impl<'run> Sync for ScopedEffectController<'run>
impl<'run> Unpin for ScopedEffectController<'run>
impl<'run> UnsafeUnpin for ScopedEffectController<'run>
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