[][src]Struct watchman_client::ResolvedRoot

pub struct ResolvedRoot { /* fields omitted */ }

Data that describes a watched filesystem location. Watchman performs watch aggregation to project boundaries, so a request to watch a subdirectory will resolve to the higher level root path and a relative path offset. This struct encodes both pieces of information.

Implementations

impl ResolvedRoot[src]

pub fn watcher(&self) -> &str[src]

Returns the name of the watcher that the server is using to monitor the path. The watcher is generally system dependent, but some systems offer multipler watchers. You generally don't care too much about the watcher that is in use, but if the watcher is a virtualized filesystem such as eden then you may wish to use to alternative queries to get the best performance.

pub fn project_root(&self) -> &Path[src]

Returns the root of the watchman project that is being watched

pub fn path(&self) -> PathBuf[src]

Returns the absolute path to the directory that you requested be resolved.

pub fn project_relative_path(&self) -> Option<&Path>[src]

Returns the path to the directory that you requested be resolved, relative to the project_root.

Trait Implementations

impl Clone for ResolvedRoot[src]

impl Debug for ResolvedRoot[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.