gix_status::index_as_worktree::traits

Trait SubmoduleStatus

Source
pub trait SubmoduleStatus {
    type Output;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn status(
        &mut self,
        entry: &Entry,
        rela_path: &BStr,
    ) -> Result<Option<Self::Output>, Self::Error>;
}
Expand description

Determine the status of a submodule, which always indicates that it changed if present.

Required Associated Types§

Source

type Output

The status result, describing in which way the submodule changed.

Source

type Error: Error + Send + Sync + 'static

A custom error that may occur while computing the submodule status.

Required Methods§

Source

fn status( &mut self, entry: &Entry, rela_path: &BStr, ) -> Result<Option<Self::Output>, Self::Error>

Compute the status of the submodule at entry and rela_path, or return None if no change was detected.

Implementors§