pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub fn with_socket_path(path: impl Into<String>) -> Self
pub async fn connect(&self) -> Result<UnixStream, DaemonError>
pub async fn send(&self, request: Request) -> Result<Response, DaemonError>
pub async fn ping(&self) -> Result<String, DaemonError>
pub async fn enqueue_sync( &self, repo_root: &str, tool: &str, directory: &str, force: bool, ) -> Result<String, DaemonError>
pub async fn wait_sync( &self, repo_root: &str, tool: &str, sync_id: &str, timeout_ms: u64, ) -> Result<SyncState, DaemonError>
pub async fn sync( &self, repo_root: &str, tool: &str, directory: &str, wait: bool, ) -> Result<SyncState, DaemonError>
pub async fn shutdown(&self, reason: &str) -> Result<(), DaemonError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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