pub struct AllowAllPermissions;Expand description
A PermissionChecker that unconditionally allows every operation.
Useful in tests, examples, and embedding scenarios where the host has already gated tool access elsewhere.
Trait Implementations§
Source§impl Clone for AllowAllPermissions
impl Clone for AllowAllPermissions
Source§fn clone(&self) -> AllowAllPermissions
fn clone(&self) -> AllowAllPermissions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowAllPermissions
impl Debug for AllowAllPermissions
Source§impl Default for AllowAllPermissions
impl Default for AllowAllPermissions
Source§fn default() -> AllowAllPermissions
fn default() -> AllowAllPermissions
Returns the “default value” for a type. Read more
Source§impl PermissionChecker for AllowAllPermissions
impl PermissionChecker for AllowAllPermissions
Source§fn evaluate(&self, _request: &dyn PermissionRequest) -> PermissionDecision
fn evaluate(&self, _request: &dyn PermissionRequest) -> PermissionDecision
Evaluate a single permission request and return the decision.
impl Copy for AllowAllPermissions
Auto Trait Implementations§
impl Freeze for AllowAllPermissions
impl RefUnwindSafe for AllowAllPermissions
impl Send for AllowAllPermissions
impl Sync for AllowAllPermissions
impl Unpin for AllowAllPermissions
impl UnsafeUnpin for AllowAllPermissions
impl UnwindSafe for AllowAllPermissions
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