pub struct FetchServices<'a> {
pub credentials: &'a mut dyn CredentialProvider,
pub progress: &'a mut dyn ProgressSink,
pub ref_hook: Option<&'a dyn ReferenceTransactionHook>,
}Expand description
Mutable seams used while fetching.
Fields§
§credentials: &'a mut dyn CredentialProviderCredential source for authenticated transports.
progress: &'a mut dyn ProgressSinkProgress sink for prune notices.
ref_hook: Option<&'a dyn ReferenceTransactionHook>reference-transaction hook handler fired when applying remote-tracking
ref updates. None skips the hook (the historical behavior). The CLI
supplies a runner so --atomic fetches honor a hook that aborts the
transaction, matching git’s store_updated_refs.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FetchServices<'a>
impl<'a> !Send for FetchServices<'a>
impl<'a> !Sync for FetchServices<'a>
impl<'a> !UnwindSafe for FetchServices<'a>
impl<'a> Freeze for FetchServices<'a>
impl<'a> Unpin for FetchServices<'a>
impl<'a> UnsafeUnpin for FetchServices<'a>
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