[−][src]Struct watchman_client::ResolvedRoot
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]
fn clone(&self) -> ResolvedRoot
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ResolvedRoot
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResolvedRoot
[src]
impl Send for ResolvedRoot
[src]
impl Sync for ResolvedRoot
[src]
impl Unpin for ResolvedRoot
[src]
impl UnwindSafe for ResolvedRoot
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,