Enum salvo::prelude::JwtAuthState
source · pub enum JwtAuthState {
Authorized,
Unauthorized,
Forbidden,
}
Available on crate feature
jwt-auth
only.Expand description
JwtAuthState
Variants§
Trait Implementations§
source§impl Clone for JwtAuthState
impl Clone for JwtAuthState
source§fn clone(&self) -> JwtAuthState
fn clone(&self) -> JwtAuthState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JwtAuthState
impl Debug for JwtAuthState
source§impl PartialEq<JwtAuthState> for JwtAuthState
impl PartialEq<JwtAuthState> for JwtAuthState
source§fn eq(&self, other: &JwtAuthState) -> bool
fn eq(&self, other: &JwtAuthState) -> bool
impl Copy for JwtAuthState
impl Eq for JwtAuthState
impl StructuralEq for JwtAuthState
impl StructuralPartialEq for JwtAuthState
Auto Trait Implementations§
impl RefUnwindSafe for JwtAuthState
impl Send for JwtAuthState
impl Sync for JwtAuthState
impl Unpin for JwtAuthState
impl UnwindSafe for JwtAuthState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Key, T> QuotaGetter<Key> for Twhere
Key: 'static + Hash + Eq + Send + Sync,
T: 'static + Clone + Send + Sync,
impl<Key, T> QuotaGetter<Key> for Twhere
Key: 'static + Hash + Eq + Send + Sync,
T: 'static + Clone + Send + Sync,
§type Error = Infallible
type Error = Infallible
Error type.
source§fn get<'life0, 'life1, 'async_trait, Q>(
&'life0 self,
_key: &'life1 Q
) -> Pin<Box<dyn Future<Output = Result<<T as QuotaGetter<Key>>::Quota, <T as QuotaGetter<Key>>::Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Key: Borrow<Q>,
Q: Hash + Eq + Sync + 'async_trait,
T: 'async_trait,
fn get<'life0, 'life1, 'async_trait, Q>(
&'life0 self,
_key: &'life1 Q
) -> Pin<Box<dyn Future<Output = Result<<T as QuotaGetter<Key>>::Quota, <T as QuotaGetter<Key>>::Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Key: Borrow<Q>,
Q: Hash + Eq + Sync + 'async_trait,
T: 'async_trait,
Get quota.