Struct m_captcha::master::Master [−][src]
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]
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]
pub fn rm_site(&mut self, id: &str)
[src]
Trait Implementations
impl Actor for Master
[src]
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Self::Context)
[src]
pub fn stopping(&mut self, ctx: &mut Self::Context) -> Running
pub fn stopped(&mut self, ctx: &mut Self::Context)
pub fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
Self: Actor<Context = Context<Self>>,
pub fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
Self: Actor<Context = Context<Self>> + Default,
pub fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
pub fn create<F>(f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
impl Clone for Master
[src]
impl Handler<AddSite> for Master
[src]
type Result = ()
The type of value that this handler will return. Read more
fn handle(&mut self, m: AddSite, _ctx: &mut Self::Context) -> Self::Result
[src]
impl Handler<CleanUp> for Master
[src]
type Result = ()
The type of value that this handler will return. Read more
fn handle(&mut self, _: CleanUp, ctx: &mut Self::Context) -> Self::Result
[src]
impl Handler<GetSite> for Master
[src]
type Result = MessageResult<GetSite>
The type of value that this handler will return. Read more
fn handle(&mut self, m: GetSite, _ctx: &mut Self::Context) -> Self::Result
[src]
impl Handler<RemoveSite> for Master
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,