Trait centraldogma::WatchService [−][src]
pub trait WatchService { fn watch_file_stream(
&self,
query: &Query
) -> Result<Pin<Box<dyn Stream<Item = WatchFileResult> + Send>>, Error>; fn watch_repo_stream(
&self,
path_pattern: &str
) -> Result<Pin<Box<dyn Stream<Item = WatchRepoResult> + Send>>, Error>; }
Expand description
Watch-related APIs
Required methods
fn watch_file_stream(
&self,
query: &Query
) -> Result<Pin<Box<dyn Stream<Item = WatchFileResult> + Send>>, Error>
[src]
fn watch_file_stream(
&self,
query: &Query
) -> Result<Pin<Box<dyn Stream<Item = WatchFileResult> + Send>>, Error>
[src]Returns a stream which output a WatchFileResult
when the result of the
given Query
becomes available or changes
fn watch_repo_stream(
&self,
path_pattern: &str
) -> Result<Pin<Box<dyn Stream<Item = WatchRepoResult> + Send>>, Error>
[src]
fn watch_repo_stream(
&self,
path_pattern: &str
) -> Result<Pin<Box<dyn Stream<Item = WatchRepoResult> + Send>>, Error>
[src]Returns a stream which output a WatchRepoResult
when the repository has a new commit
that contains the changes for the files matched by the given path_pattern
.
Implementors
fn watch_file_stream(
&self,
query: &Query
) -> Result<Pin<Box<dyn Stream<Item = WatchFileResult> + Send>>, Error>
[src]fn watch_repo_stream(
&self,
path_pattern: &str
) -> Result<Pin<Box<dyn Stream<Item = WatchRepoResult> + Send>>, Error>
[src]