Struct cache::safety::MCaptchaSafety[][src]

pub struct MCaptchaSafety;

Implementations

impl MCaptchaSafety[src]

pub fn on_delete(
    ctx: &Context,
    event_type: NotifyEvent,
    event: &str,
    key_name: &str
)
[src]

pub fn new(
    ctx: &Context,
    duration: u64,
    mcaptcha_name: &str
) -> Result<(), CacheError>
[src]

fn set_timer(
    ctx: &Context,
    safety: &RedisKeyWritable,
    (safety_name, duration): (String, u64)
) -> Result<(), CacheError>
[src]

fn boost(ctx: &Context, (safety_name, duration): (String, u64))[src]

executes when timer goes off. Refreshes expiry timer and resets timer

Trait Implementations

impl<'de> Deserialize<'de> for MCaptchaSafety[src]

impl Serialize for MCaptchaSafety[src]

Auto Trait Implementations

impl RefUnwindSafe for MCaptchaSafety

impl Send for MCaptchaSafety

impl Sync for MCaptchaSafety

impl Unpin for MCaptchaSafety

impl UnwindSafe for MCaptchaSafety

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,