pub struct CallbackEffects<'ctx, 'id> { /* private fields */ }Expand description
Builder for optional callback effect metadata.
Implementations§
Source§impl<'ctx, 'id> CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> CallbackEffects<'ctx, 'id>
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> !Sync for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> !UnwindSafe for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> Freeze for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> RefUnwindSafe for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> Send for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> Unpin for CallbackEffects<'ctx, 'id>
impl<'ctx, 'id> UnsafeUnpin for CallbackEffects<'ctx, 'id>
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