Struct easy_captcha::extension::CaptchaUtil
source · pub struct CaptchaUtil<T: AbstractCaptcha = SpecCaptcha> { /* private fields */ }Expand description
验证码工具类 - Captcha Utils
默认使用SpecCaptcha(静态PNG字母验证码)作为验证码实现,用户也可以指定其他实现了AbstractCaptcha的类型。
Use SpecCaptcha (static PNG-format alphabetical Captcha) as the default implement of the Captcha service. Users may use other implementation of AbstractCaptcha they prefer.
Trait Implementations§
source§impl<T: AbstractCaptcha> NewCaptcha for CaptchaUtil<T>
impl<T: AbstractCaptcha> NewCaptcha for CaptchaUtil<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CaptchaUtil<T>where
T: RefUnwindSafe,
impl<T> Send for CaptchaUtil<T>where
T: Send,
impl<T> Sync for CaptchaUtil<T>where
T: Sync,
impl<T> Unpin for CaptchaUtil<T>where
T: Unpin,
impl<T> UnwindSafe for CaptchaUtil<T>where
T: UnwindSafe,
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