pub struct PluginRuntime<S: AuthSchema>(/* private fields */);Expand description
A plugin’s reference to its own authentication runtime.
Implementations§
Source§impl<S: AuthSchema> PluginRuntime<S>
impl<S: AuthSchema> PluginRuntime<S>
Sourcepub fn context(&self) -> AuthResult<Arc<AuthContext<S>>>
pub fn context(&self) -> AuthResult<Arc<AuthContext<S>>>
Read this instance’s active request context or its initialized context.
Sourcepub fn bind(&self, context: &Arc<AuthContext<S>>) -> AuthResult<()>
pub fn bind(&self, context: &Arc<AuthContext<S>>) -> AuthResult<()>
Bind once after every plugin and store facade has been initialized.
Trait Implementations§
Source§impl<S: AuthSchema> Clone for PluginRuntime<S>
impl<S: AuthSchema> Clone for PluginRuntime<S>
Source§impl<S: AuthSchema> Default for PluginRuntime<S>
impl<S: AuthSchema> Default for PluginRuntime<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for PluginRuntime<S>
impl<S> !UnwindSafe for PluginRuntime<S>
impl<S> Freeze for PluginRuntime<S>
impl<S> Send for PluginRuntime<S>
impl<S> Sync for PluginRuntime<S>
impl<S> Unpin for PluginRuntime<S>
impl<S> UnsafeUnpin for PluginRuntime<S>
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