Struct centraldogma::RepoClient [−][src]
pub struct RepoClient<'a> { /* fields omitted */ }
Expand description
A temporary client within context of a Repository.
Created by Client::repo()
Implements crate::ContentService
and
crate::WatchService
Trait Implementations
fn get_history<'life0, 'life1, 'async_trait>(
&'life0 self,
from_rev: Revision,
to_rev: Revision,
path: &'life1 str,
max_commits: Option<u32>
) -> Pin<Box<dyn Future<Output = Result<Vec<Commit>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn get_history<'life0, 'life1, 'async_trait>(
&'life0 self,
from_rev: Revision,
to_rev: Revision,
path: &'life1 str,
max_commits: Option<u32>
) -> Pin<Box<dyn Future<Output = Result<Vec<Commit>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Returns the diff of a file between two Revision
s.
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 Read more
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
. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RepoClient<'a>
impl<'a> Send for RepoClient<'a>
impl<'a> Sync for RepoClient<'a>
impl<'a> Unpin for RepoClient<'a>
impl<'a> !UnwindSafe for RepoClient<'a>