Struct m_captcha::master::Master[][src]

pub struct Master { /* fields omitted */ }

This Actor manages the MCaptcha actors. A service can have several MCaptcha actors with varying Defense configurations so a "master" actor is needed to manage them all

Implementations

impl Master[src]

pub fn add_site(&mut self, details: AddSite)[src]

add MCaptcha actor to Master

pub fn new(gc: u64) -> Self[src]

create new master accepts a u64 to configure garbage collection period

pub fn get_site<'a, 'b>(&'a mut self, id: &'b str) -> Option<Addr<MCaptcha>>[src]

get MCaptcha actor from Master

pub fn rm_site(&mut self, id: &str)[src]

remvoes MCaptcha actor from Master

Trait Implementations

impl Actor for Master[src]

type Context = Context<Self>

Actor execution context type

impl Clone for Master[src]

impl Handler<AddSite> for Master[src]

type Result = ()

The type of value that this handler will return. Read more

impl Handler<CleanUp> for Master[src]

type Result = ()

The type of value that this handler will return. Read more

impl Handler<GetSite> for Master[src]

type Result = MessageResult<GetSite>

The type of value that this handler will return. Read more

impl Handler<RemoveSite> for Master[src]

type Result = ()

The type of value that this handler will return. Read more

Auto Trait Implementations

impl !RefUnwindSafe for Master[src]

impl Send for Master[src]

impl Sync for Master[src]

impl Unpin for Master[src]

impl !UnwindSafe for Master[src]

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,