pub struct AllowAll;Expand description
Helper: Always allow all requests (no authentication)
Use this as a placeholder or for development/testing.
Trait Implementations§
Source§impl AuthPolicy for AllowAll
impl AuthPolicy for AllowAll
Source§fn can_access(
&self,
_method: &str,
_params: Option<&Value>,
_ctx: &ConnectionContext,
) -> bool
fn can_access( &self, _method: &str, _params: Option<&Value>, _ctx: &ConnectionContext, ) -> bool
Check if a request should be allowed to proceed Read more
Optional: Get the unauthorized error response Read more
Auto Trait Implementations§
impl Freeze for AllowAll
impl RefUnwindSafe for AllowAll
impl Send for AllowAll
impl Sync for AllowAll
impl Unpin for AllowAll
impl UnwindSafe for AllowAll
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