[][src]Trait tellirc::DaoTrait

pub trait DaoTrait {
    fn get_message_for(
        &self,
        who: &str,
        in_chan: &str
    ) -> Result<Option<Vec<MessageCacheRow>>, &'static str>;
fn add_message_for(
        &self,
        who: &str,
        what: &str,
        chan: &Option<&str>,
        from: &str
    ) -> Result<(), &'static str>;
fn del_message(&self, msg: &MessageCacheRow) -> Result<(), &'static str>;
fn get_alias_for(
        &self,
        who: &str
    ) -> Result<(Option<AliasRow>, Vec<String>), &'static str>;
fn add_alias_for(
        &self,
        who: &str,
        to_add: &str
    ) -> Result<Vec<String>, &'static str>;
fn del_alias_for(
        &self,
        who: &str,
        to_del: &str
    ) -> Result<Vec<String>, &'static str>; }

Required methods

fn get_message_for(
    &self,
    who: &str,
    in_chan: &str
) -> Result<Option<Vec<MessageCacheRow>>, &'static str>

fn add_message_for(
    &self,
    who: &str,
    what: &str,
    chan: &Option<&str>,
    from: &str
) -> Result<(), &'static str>

fn del_message(&self, msg: &MessageCacheRow) -> Result<(), &'static str>

fn get_alias_for(
    &self,
    who: &str
) -> Result<(Option<AliasRow>, Vec<String>), &'static str>

fn add_alias_for(
    &self,
    who: &str,
    to_add: &str
) -> Result<Vec<String>, &'static str>

fn del_alias_for(
    &self,
    who: &str,
    to_del: &str
) -> Result<Vec<String>, &'static str>

Loading content...

Implementors

impl DaoTrait for Dao[src]

Loading content...