Trait actix_web_security::authentication::scheme::bearer::jwt::token::decoder::TokenDecoderClone[][src]

pub trait TokenDecoderClone<T: for<'b> Deserialize<'b> + Claims>: Send + Sync {
    fn clone_box(&self) -> Box<dyn TokenDecoder<T>>;
}

A token decoder must be cloneable, send and sync. Therefore it has to implement the TokenDecoderClone trait to be cloneable as a boxed object.

Required methods

fn clone_box(&self) -> Box<dyn TokenDecoder<T>>[src]

Loading content...

Implementors

impl<T: for<'b> Deserialize<'b> + Claims, U> TokenDecoderClone<T> for U where
    U: 'static + TokenDecoder<T> + Clone
[src]

Loading content...