pub struct LocalDispatcher<R> { /* private fields */ }Expand description
Local dispatcher that calls resolver directly.
Implementations§
Source§impl<R> LocalDispatcher<R>
impl<R> LocalDispatcher<R>
Trait Implementations§
Source§impl<R> Dispatcher for LocalDispatcher<R>
impl<R> Dispatcher for LocalDispatcher<R>
fn dispatch_check<'life0, 'async_trait>(
&'life0 self,
request: ResolveCheckRequest,
) -> Pin<Box<dyn Future<Output = Result<CheckResult, AuthzError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dispatch_list_objects<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_subject_type: &'life1 str,
_subject_id: &'life2 str,
_relation: &'life3 str,
_object_type: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, AuthzError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn dispatch_list_subjects<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_object_type: &'life1 str,
_object_id: &'life2 str,
_relation: &'life3 str,
_subject_type: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, AuthzError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl<R> Freeze for LocalDispatcher<R>where
R: Freeze,
impl<R> RefUnwindSafe for LocalDispatcher<R>where
R: RefUnwindSafe,
impl<R> Send for LocalDispatcher<R>where
R: Send,
impl<R> Sync for LocalDispatcher<R>where
R: Sync,
impl<R> Unpin for LocalDispatcher<R>where
R: Unpin,
impl<R> UnsafeUnpin for LocalDispatcher<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for LocalDispatcher<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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