Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<'x> {
    // Provided methods
    fn include_script(
        &mut self,
        ctx: &Context<'x>,
        name: Script<'_>,
        optional: bool,
    ) -> Reply<Option<&'x Sieve<'x>>> { ... }
    fn mailbox_exists(
        &mut self,
        ctx: &Context<'x>,
        mailboxes: &[Mailbox<'_>],
        special_use: &[&str],
    ) -> Reply<bool> { ... }
    fn list_contains(
        &mut self,
        ctx: &Context<'x>,
        lists: &[&str],
        values: &[&str],
        match_as: MatchAs,
    ) -> Reply<bool> { ... }
    fn duplicate_id(
        &mut self,
        ctx: &Context<'x>,
        id: &str,
        expiry: u64,
        last: bool,
    ) -> Reply<bool> { ... }
    fn function(
        &mut self,
        ctx: &Context<'x>,
        id: ExternalId,
        arguments: &[Variable<'x>],
    ) -> Reply<Variable<'x>> { ... }
    fn action(&mut self, ctx: &Context<'x>, action: Action<'x>) -> Reply<()> { ... }
}

Provided Methods§

Source

fn include_script( &mut self, ctx: &Context<'x>, name: Script<'_>, optional: bool, ) -> Reply<Option<&'x Sieve<'x>>>

Source

fn mailbox_exists( &mut self, ctx: &Context<'x>, mailboxes: &[Mailbox<'_>], special_use: &[&str], ) -> Reply<bool>

Source

fn list_contains( &mut self, ctx: &Context<'x>, lists: &[&str], values: &[&str], match_as: MatchAs, ) -> Reply<bool>

Source

fn duplicate_id( &mut self, ctx: &Context<'x>, id: &str, expiry: u64, last: bool, ) -> Reply<bool>

Source

fn function( &mut self, ctx: &Context<'x>, id: ExternalId, arguments: &[Variable<'x>], ) -> Reply<Variable<'x>>

Source

fn action(&mut self, ctx: &Context<'x>, action: Action<'x>) -> Reply<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§