pub struct NoopDelegationInvoker;Expand description
DelegationInvoker impl that returns NotFound for every call.
Useful as the default for evaluator callers that don’t run any
delegate(...) steps — they need to pass something implementing
the trait, but the noop never actually gets invoked. Tests and
hosts that haven’t wired a real delegation backend pass this.
Trait Implementations§
Source§impl DelegationInvoker for NoopDelegationInvoker
impl DelegationInvoker for NoopDelegationInvoker
Source§fn delegate<'life0, 'life1, 'async_trait>(
&'life0 self,
step: &'life1 DelegateStep,
) -> Pin<Box<dyn Future<Output = Result<DelegationOutcome, DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delegate<'life0, 'life1, 'async_trait>(
&'life0 self,
step: &'life1 DelegateStep,
) -> Pin<Box<dyn Future<Output = Result<DelegationOutcome, DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run one delegation step. Returns a
DelegationOutcome carrying
the granted permissions / audience / expiry the IdP issued; the
evaluator writes those into the bag as delegation.granted_*
attributes so subsequent rules in the same step list can
inspect them via require(delegation.granted_permissions contains "X") etc. Read moreAuto Trait Implementations§
impl Freeze for NoopDelegationInvoker
impl RefUnwindSafe for NoopDelegationInvoker
impl Send for NoopDelegationInvoker
impl Sync for NoopDelegationInvoker
impl Unpin for NoopDelegationInvoker
impl UnsafeUnpin for NoopDelegationInvoker
impl UnwindSafe for NoopDelegationInvoker
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