TokenDecoderClone

Trait TokenDecoderClone 

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

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§

Source

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

Implementors§

Source§

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