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>;
}