pub struct CallbackEffects<'ctx, 'id, R: NodeRuntime + ?Sized = dyn NodeRuntime + 'ctx> { /* private fields */ }Expand description
Builder for optional callback effect metadata.
Implementations§
Source§impl<'ctx, 'id, R: NodeRuntime + ?Sized> CallbackEffects<'ctx, 'id, R>
impl<'ctx, 'id, R: NodeRuntime + ?Sized> CallbackEffects<'ctx, 'id, R>
Sourcepub fn reads_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
pub fn reads_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
Record that callback reads from a declared entity handle.
Sourcepub fn publishes_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
pub fn publishes_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
Record that callback publishes via a declared entity handle.
Sourcepub fn writes_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
pub fn writes_entity(self, entity: &impl DeclaredEntity) -> NodeResult<Self>
Record that callback writes to a declared entity handle.
Auto Trait Implementations§
impl<'ctx, 'id, R> Freeze for CallbackEffects<'ctx, 'id, R>where
R: ?Sized,
impl<'ctx, 'id, R> RefUnwindSafe for CallbackEffects<'ctx, 'id, R>where
R: RefUnwindSafe + ?Sized,
impl<'ctx, 'id, R> Send for CallbackEffects<'ctx, 'id, R>
impl<'ctx, 'id, R> Sync for CallbackEffects<'ctx, 'id, R>
impl<'ctx, 'id, R> Unpin for CallbackEffects<'ctx, 'id, R>where
R: ?Sized,
impl<'ctx, 'id, R> UnsafeUnpin for CallbackEffects<'ctx, 'id, R>where
R: ?Sized,
impl<'ctx, 'id, R = dyn NodeRuntime + 'ctx> !UnwindSafe for CallbackEffects<'ctx, 'id, R>
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