pub enum Decoder {
Local(Arc<LocalDecoder>),
Remote(Arc<RemoteJwksDecoder>),
}Variants§
Local(Arc<LocalDecoder>)
Remote(Arc<RemoteJwksDecoder>)
Trait Implementations§
Source§impl From<LocalDecoder> for Decoder
impl From<LocalDecoder> for Decoder
Source§fn from(decoder: LocalDecoder) -> Self
fn from(decoder: LocalDecoder) -> Self
Converts to this type from the input type.
Source§impl From<RemoteJwksDecoder> for Decoder
impl From<RemoteJwksDecoder> for Decoder
Source§fn from(decoder: RemoteJwksDecoder) -> Self
fn from(decoder: RemoteJwksDecoder) -> Self
Converts to this type from the input type.
Source§impl FromRef<JwtDecoderState> for Decoder
impl FromRef<JwtDecoderState> for Decoder
Source§fn from_ref(state: &JwtDecoderState) -> Self
fn from_ref(state: &JwtDecoderState) -> Self
Converts to this type from a reference to the input type.
Auto Trait Implementations§
impl Freeze for Decoder
impl !RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl !UnwindSafe for Decoder
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