pub enum PolicyVerdict<'a> {
NoMatch,
Matched(&'a PolicyDecision),
Failed(&'a str),
}Expand description
What tuff policy evaluate concluded about one call.
Variants§
NoMatch
No rule matched; the harness decides as it would without the hook.
Matched(&'a PolicyDecision)
Failed(&'a str)
The input or the policy could not be read; the call is refused.
Trait Implementations§
Source§impl<'a> Clone for PolicyVerdict<'a>
impl<'a> Clone for PolicyVerdict<'a>
impl<'a> Copy for PolicyVerdict<'a>
Auto Trait Implementations§
impl<'a> Freeze for PolicyVerdict<'a>
impl<'a> RefUnwindSafe for PolicyVerdict<'a>
impl<'a> Send for PolicyVerdict<'a>
impl<'a> Sync for PolicyVerdict<'a>
impl<'a> Unpin for PolicyVerdict<'a>
impl<'a> UnsafeUnpin for PolicyVerdict<'a>
impl<'a> UnwindSafe for PolicyVerdict<'a>
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