pub struct DefaultTskClient { /* private fields */ }Expand description
Default implementation of TskClient that communicates with the TSK server via Unix sockets
Implementations§
Source§impl DefaultTskClient
impl DefaultTskClient
Sourcepub fn new(xdg_directories: Arc<XdgDirectories>) -> Self
pub fn new(xdg_directories: Arc<XdgDirectories>) -> Self
Create a new TSK client
Trait Implementations§
Source§impl Clone for DefaultTskClient
impl Clone for DefaultTskClient
Source§fn clone(&self) -> DefaultTskClient
fn clone(&self) -> DefaultTskClient
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TskClient for DefaultTskClient
impl TskClient for DefaultTskClient
Source§fn is_server_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_server_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the server is available
Source§fn add_task<'life0, 'async_trait>(
&'life0 self,
repo_path: PathBuf,
task: Task,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_task<'life0, 'async_trait>(
&'life0 self,
repo_path: PathBuf,
task: Task,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a task to the server
Source§fn list_tasks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_tasks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all tasks from the server
Auto Trait Implementations§
impl Freeze for DefaultTskClient
impl RefUnwindSafe for DefaultTskClient
impl Send for DefaultTskClient
impl Sync for DefaultTskClient
impl Unpin for DefaultTskClient
impl UnwindSafe for DefaultTskClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more