pub trait ErasedMethod: Send + Sync {
// Required methods
fn erased_id(&self) -> String;
fn erased_actions(&self) -> Vec<Box<dyn ErasedMethodAction>>;
fn erased_action_by_id(
&self,
action_id: &str,
) -> Option<Box<dyn ErasedMethodAction>>;
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_user_connections<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
provider_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Box<dyn Any + Send + Sync>>, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn erased_deserialize_session(
&self,
value: Option<&str>,
) -> Result<Box<dyn Any + Send + Sync>, SessionError>;
}Required Methods§
fn erased_id(&self) -> String
fn erased_actions(&self) -> Vec<Box<dyn ErasedMethodAction>>
fn erased_action_by_id( &self, action_id: &str, ) -> Option<Box<dyn ErasedMethodAction>>
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_user_connections<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
provider_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Box<dyn Any + Send + Sync>>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn erased_deserialize_session( &self, value: Option<&str>, ) -> Result<Box<dyn Any + Send + Sync>, SessionError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".