pub struct ShellGitMarker { /* private fields */ }Expand description
A GitMarker that commits pod writes by shelling to git.
Stateless and cheap to clone — it holds only the committer name used in the
git -c user.name=… override.
Implementations§
Trait Implementations§
Source§impl Clone for ShellGitMarker
impl Clone for ShellGitMarker
Source§fn clone(&self) -> ShellGitMarker
fn clone(&self) -> ShellGitMarker
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 ShellGitMarker
impl Debug for ShellGitMarker
Source§impl Default for ShellGitMarker
impl Default for ShellGitMarker
Source§impl GitMarker for ShellGitMarker
impl GitMarker for ShellGitMarker
Source§fn mark_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
repo: &'life1 Path,
path: &'life2 str,
agent_did: &'life3 str,
message: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<GitMark, ProvenanceError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn mark_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
repo: &'life1 Path,
path: &'life2 str,
agent_did: &'life3 str,
message: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<GitMark, ProvenanceError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn head<'life0, 'life1, 'async_trait>(
&'life0 self,
repo: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProvenanceError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn head<'life0, 'life1, 'async_trait>(
&'life0 self,
repo: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProvenanceError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the current HEAD commit SHA, or
None for an unborn branch.Auto Trait Implementations§
impl Freeze for ShellGitMarker
impl RefUnwindSafe for ShellGitMarker
impl Send for ShellGitMarker
impl Sync for ShellGitMarker
impl Unpin for ShellGitMarker
impl UnsafeUnpin for ShellGitMarker
impl UnwindSafe for ShellGitMarker
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