Connector

Trait Connector 

Source
pub trait Connector: Send + Sync {
Show 13 methods // Required methods fn items(&self, sizes: IconSizes) -> Option<ClientItems>; fn connect(&self, item: ClientItem) -> Task<()>; fn remote_drive(&self, uri: String) -> Task<()>; fn remote_scan( &self, uri: &str, sizes: IconSizes, ) -> Option<Result<Vec<Item>, String>>; fn remote_parent_item( &self, uri: &str, sizes: IconSizes, ) -> Option<Result<Item, String>>; fn dir_info(&self, uri: &str) -> Option<(String, String, Option<PathBuf>)>; fn disconnect(&self, item: ClientItem) -> Task<()>; fn download_file( &self, paths: Box<[PathBuf]>, uris: Vec<String>, to: PathBuf, zip_output: Option<PathBuf>, ) -> Task<DownloadEvent>; fn run_tb_profiler( &self, paths: Box<[PathBuf]>, uris: Vec<String>, tb_config: TBConfig, ) -> Task<()>; fn delete_remote_files( &self, paths: Box<[PathBuf]>, uris: Vec<String>, ) -> Task<()>; fn delete_tb_profiler_results( &self, uri: String, tb_config: TBConfig, ) -> Task<()>; fn poll_job_status(&self, job_id: usize, uri: String) -> Task<()>; fn subscription(&self) -> Subscription<ClientMessage>;
}

Required Methods§

Source

fn items(&self, sizes: IconSizes) -> Option<ClientItems>

Source

fn connect(&self, item: ClientItem) -> Task<()>

Source

fn remote_drive(&self, uri: String) -> Task<()>

Source

fn remote_scan( &self, uri: &str, sizes: IconSizes, ) -> Option<Result<Vec<Item>, String>>

Source

fn remote_parent_item( &self, uri: &str, sizes: IconSizes, ) -> Option<Result<Item, String>>

Source

fn dir_info(&self, uri: &str) -> Option<(String, String, Option<PathBuf>)>

Source

fn disconnect(&self, item: ClientItem) -> Task<()>

Source

fn download_file( &self, paths: Box<[PathBuf]>, uris: Vec<String>, to: PathBuf, zip_output: Option<PathBuf>, ) -> Task<DownloadEvent>

Source

fn run_tb_profiler( &self, paths: Box<[PathBuf]>, uris: Vec<String>, tb_config: TBConfig, ) -> Task<()>

Source

fn delete_remote_files( &self, paths: Box<[PathBuf]>, uris: Vec<String>, ) -> Task<()>

Source

fn delete_tb_profiler_results( &self, uri: String, tb_config: TBConfig, ) -> Task<()>

Source

fn poll_job_status(&self, job_id: usize, uri: String) -> Task<()>

Source

fn subscription(&self) -> Subscription<ClientMessage>

Implementors§