atuin_client::import

Trait Importer

Source
pub trait Importer: Sized {
    const NAME: &'static str;

    // Required methods
    fn new<'async_trait>(    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn entries<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn load<'life0, 'async_trait>(
        self,
        loader: &'life0 mut (impl 'async_trait + Loader),
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn new<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn entries<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn load<'life0, 'async_trait>( self, loader: &'life0 mut (impl 'async_trait + Loader), ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Importer for Bash

Source§

const NAME: &'static str = "bash"

Source§

impl Importer for Fish

Source§

const NAME: &'static str = "fish"

Source§

impl Importer for Nu

Source§

const NAME: &'static str = "nu"

Source§

impl Importer for NuHistDb

Source§

const NAME: &'static str = "nu_histdb"

Source§

impl Importer for Replxx

Source§

const NAME: &'static str = "replxx"

Source§

impl Importer for Resh

Source§

const NAME: &'static str = "resh"

Source§

impl Importer for Xonsh

Source§

const NAME: &'static str = "xonsh"

Source§

impl Importer for XonshSqlite

Source§

const NAME: &'static str = "xonsh_sqlite"

Source§

impl Importer for Zsh

Source§

const NAME: &'static str = "zsh"

Source§

impl Importer for ZshHistDb

Source§

const NAME: &'static str = "zsh_histdb"