pub struct DummyMethod<U: User> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<U: User + 'static> ErasedMethod for DummyMethod<U>
impl<U: User + 'static> ErasedMethod for DummyMethod<U>
fn erased_id(&self) -> String
fn erased_actions(&self) -> Vec<Box<dyn ErasedAction>>
fn erased_action_by_id(&self, action_id: &str) -> Option<Box<dyn ErasedAction>>
fn erased_providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Option<String>, Box<dyn Any + Send + Sync>)>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn erased_provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Any + Send + Sync>>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn erased_deserialize_session( &self, value: Option<&str>, ) -> Result<Box<dyn Any + Send + Sync>, SessionError>
Source§impl<U: User + 'static> Method for DummyMethod<U>
impl<U: User + 'static> Method for DummyMethod<U>
type Provider = DummyProvider
type Session = ()
fn id(&self) -> String
fn actions(&self) -> Vec<Box<dyn Action<Self::Provider, Self::Session>>>
fn providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn action_by_id( &self, action_id: &str, ) -> Option<Box<dyn Action<Self::Provider, Self::Session>>>
fn provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl<U> Freeze for DummyMethod<U>
impl<U> !RefUnwindSafe for DummyMethod<U>
impl<U> Send for DummyMethod<U>
impl<U> Sync for DummyMethod<U>
impl<U> Unpin for DummyMethod<U>
impl<U> UnsafeUnpin for DummyMethod<U>
impl<U> !UnwindSafe for DummyMethod<U>
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