[][src]Trait potatonet::services::logger::Backend

pub trait Backend: 'static + Send + Sync {
    fn append(&self, item: Item) -> Result<(), Error>;
fn query_latest(&self, limit: usize) -> Result<Vec<Item>, Error>; }

日志后台

Required methods

fn append(&self, item: Item) -> Result<(), Error>

添加日志

fn query_latest(&self, limit: usize) -> Result<Vec<Item>, Error>

查询最新日志

Loading content...

Implementors

impl Backend for MongoBackend[src]

impl Backend for StdoutBackend[src]

Loading content...