pub trait AdminBannedUserMessage<U: AuthUser>:
Send
+ Sync
+ 'static {
// Required method
fn message<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 U,
) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Resolves the message returned when a nonexpired banned user requests a session.
The user is the stored application entity, including fields hidden from HTTP
responses. This callback is awaited before any new session is created. Errors
retain their status. Returning AuthError::Internal represents an ordinary
application failure: HTTP callers receive an empty 500 response, matching
the upstream callback exception contract. Explicit API errors retain their
public body, including when their status is 500.
Required Methods§
fn message<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 U,
) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".