Function scope_deregister_subscriber

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub fn scope_deregister_subscriber(
    scope_uuid: &Uuid,
    name: &str,
) -> Result<bool>

Deregister a scope-local lifecycle event subscriber.

This removes the named subscriber from the registry attached to a specific active scope.

Parameters

  • scope_uuid: UUID of the owning scope.
  • name: Scope-local subscriber name to remove.

Returns

A Result containing true when a subscriber was removed and false when the name was not registered on that scope.

Errors

Returns FlowError::NotFound when the scope does not exist on the active stack.

Notes

Deregistration affects only future event delivery for that scope. Already emitted events carry a subscriber snapshot, so queued callbacks from that snapshot may still run after deregistration.