pub struct GitCliChangeProvider { /* private fields */ }Expand description
Configuration for the production local Git provider.
Implementations§
Source§impl GitCliChangeProvider
impl GitCliChangeProvider
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a provider using git from the process search path and conservative budgets.
Sourcepub fn with_limits(
git_binary: impl Into<OsString>,
timeout: Duration,
stdout_cap: usize,
stderr_cap: usize,
) -> Self
pub fn with_limits( git_binary: impl Into<OsString>, timeout: Duration, stdout_cap: usize, stderr_cap: usize, ) -> Self
Creates a provider with explicit executable and process budgets.
Zero output limits are rejected when ChangeProvider::changes is called.
Trait Implementations§
Source§impl ChangeProvider for GitCliChangeProvider
impl ChangeProvider for GitCliChangeProvider
Source§fn changes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ChangeRequest,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ChangeSet, ChangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn changes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ChangeRequest,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ChangeSet, ChangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Collects a bounded and fingerprinted change set. Read more
Source§impl Clone for GitCliChangeProvider
impl Clone for GitCliChangeProvider
Source§fn clone(&self) -> GitCliChangeProvider
fn clone(&self) -> GitCliChangeProvider
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 moreSource§impl Debug for GitCliChangeProvider
impl Debug for GitCliChangeProvider
Auto Trait Implementations§
impl Freeze for GitCliChangeProvider
impl RefUnwindSafe for GitCliChangeProvider
impl Send for GitCliChangeProvider
impl Sync for GitCliChangeProvider
impl Unpin for GitCliChangeProvider
impl UnsafeUnpin for GitCliChangeProvider
impl UnwindSafe for GitCliChangeProvider
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