pub struct DaemonClient { /* private fields */ }Implementations§
Source§impl DaemonClient
impl DaemonClient
pub fn connect(roots: Vec<PathBuf>) -> Result<Self>
pub fn connect_config(config: DaemonWorkspaceConfig) -> Result<Self>
pub fn connect_or_start(roots: Vec<PathBuf>) -> Result<Self>
pub fn connect_or_start_config(config: DaemonWorkspaceConfig) -> Result<Self>
pub fn connect_or_start_supporting( config: DaemonWorkspaceConfig, capability: &str, ) -> Result<Self>
pub fn root(&self) -> &Path
pub fn roots(&self) -> &[PathBuf]
pub fn config(&self) -> &DaemonWorkspaceConfig
pub fn endpoint(&self) -> &str
Methods from Deref<Target = DaemonConnection>§
pub fn handshake(&self, _client: &str) -> Result<HandshakeResponse>
pub fn supports_query(&self, capability: &str) -> Result<bool>
pub fn query(&self, request: QueryRequest) -> Result<QueryResponse>
pub fn command(&self, request: CommandRequest) -> Result<String>
pub fn command_response( &self, request: CommandRequest, ) -> Result<CommandResponse>
pub fn shutdown(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for DaemonClient
impl Clone for DaemonClient
Source§fn clone(&self) -> DaemonClient
fn clone(&self) -> DaemonClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DaemonClient
impl !UnwindSafe for DaemonClient
impl Freeze for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnsafeUnpin for DaemonClient
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